收藏的文章

1.用nodejs搭建本地服务器,安装anywhere,npm install anywhere -g,mac的话前面加sudo,然后找到文件目录,dos下输入anywhere 8860即可。

http://jingyan.baidu.com/article/19020a0a02ff67529c28425f.html

2.阻止iframe引用的网页自动跳转

如果引用的网页加了如下判断,则会强制跳转

if(top.location != self.location){
    top.location = self.location;  
}

解决方法是iframe标签里增加两个属性

security="restricted" sandbox=""

http://www.tuicool.com/articles/3UjANrF

posted @ 2016-02-15 14:41  简惬  阅读(135)  评论(0编辑  收藏  举报