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

请问该如何使用? #95

Open
Spider-DT opened this issue Jan 14, 2022 · 0 comments
Open

请问该如何使用? #95

Spider-DT opened this issue Jan 14, 2022 · 0 comments

Comments

@Spider-DT
Copy link

本人前端小白,有这样的一个需求:在服务器80端口对外访问的静态HTML中,实现划词高亮。
有几个问题想请教下:

1. 关于如何安装

npm i web-highlighter
这条命令是在云主机shell命令行输入吗?安装完成后,即可实现划词高亮吗?

2. 关于如何使用

import Highlighter from 'web-highlighter'; (new Highlighter()).run();
这两行命令该如何使用呢?能否如同JS直接写入html文档?

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

No branches or pull requests

1 participant