Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
216 views
in Technique[技术] by (71.8m points)

js设为首页,加入收藏

现在貌似最常见的加入收藏,设为首页的代码都不起作用了
在谷歌,火狐上试了都是加入收藏失败,要按ctrl+D


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

这样的控制浏览器的行为,浏览器都不会放权给开发者的,毕竟用户是第一位的,除非用户去允许,如果可以自由地通过这样的行为,那不是莫名其妙用户的首页就变了,莫名其妙用户的书签栏就多了很多杂七杂八的东西

连改变窗口大小的接口,浏览器都是默认禁用的。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...