需要将图像或链接添加到我的翻页文本区域。我知道我们能够 Hook 图像或链接事件,但我想在不 Hook 的情况下做到这一点。例如;我有一个像 files/home/sweet/home.jpg
这样的图像网址,但我不知道如何将其与 markdown 样式直接添加到文本区域的内容中。
![enter image description here][1]
...
[1]: files/home/sweet/home.jpg
最佳答案
在我的 github ReadMe 中的 Markdown 中,有效的是使用括号来指示要插入的图像的路径:
![enter image description here](files/home/sweet/home.jpg)
希望这有帮助。
关于javascript - 如何在没有钩子(Hook)的情况下动态添加图像或链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27346911/