Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构造函数第一个参数使用字符串报错 #81

Open
Sander-Y opened this issue Sep 14, 2020 · 1 comment
Open

构造函数第一个参数使用字符串报错 #81

Sander-Y opened this issue Sep 14, 2020 · 1 comment
Assignees
Labels

Comments

@Sander-Y
Copy link

let originString = "hello world"
let annotator = new Annotator(originString, document.getElementById("test"))
annotator.on("textSelected", () => {
console.log(111)
})

使用api文档中的一段代码,运行时报错'unexpeted token h in JSON at position 0'

@longfangsong longfangsong self-assigned this Sep 14, 2020
@yanguoqiang29
Copy link

这个应该是版本问题,master分支下的代码 里面有ts的东西,我切换了一个分支,纯vue写的. "poplar-annotation": "^1.2.5"然后就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants