使用 javascript 显示所有书签
我正在尝试使用 Javascript 列出我的所有书签。有什么办法可以实现这个目标吗?预先感谢您的任何帮助。
I'm trying to list all of my bookmarks using Javascript. Is there any way that I can accomplish this? Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在网页设计中,由于安全原因存在一些限制。例如,JavaScript 必须读取计算机上的 Web 文件夹并显示计算机中的信息。那样的话安全性会很差。
使用社交书签,并在需要时进行更新。
In web design, there are some limitations due to security. Such as this, javascript would have to read your web folder on your computer and display the information from your computer. That would be bad security wise.
Use social bookmarking, and update it when you need to.
显示书签的唯一方法是 xul 又名扩展,如果这是您想要的,则查找 place api。 Places 是一个位于您的个人资料文件夹中的 sqlite 数据库。它的名称是places.sqlite
The only way to show your bookmarks is though xul aka an extension if this is what you want then look up places api. Places is a sqlite database located n ur profile folder.It's name is places.sqlite
如果您使用 Firefox,则配置文件文件夹中有一个名为 bookmarks.html 的文件。您可以打开此文件并插入一些 JavaScript。
但如前所述,您不能(出于充分的理由)不从任何页面使用 JavaScript 直接访问书签。
If you use Firefox, there is a file called bookmarks.html in the profile folder. You can open this file and insert some JavaScript.
But as mentioned before, you can't (for good reasons) not access the bookmarks directly using JavaScript from any page.