摘要: 背景:有时不是记住密码就方便,有时是记录了反而不好,不安全呵。1)首先大部分浏览器都是根据表单域的type="password"来判断密码域的,所以针对这种情况可以采取“动态设置密码域”的方法:<input type="text" name="password" onfocus="this.type 阅读全文
posted @ 2016-06-17 14:54 疯子110 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: jQuery如何去判断页面是否有父页面? 是要判断当前页面是否被嵌入在frame里吗? 1 2 3 if (top != self) { alert('我在框架里'); } 是要判断当前页面是否被嵌入在frame里吗? 1 2 3 if (top != self) { alert('我在框架里'); 阅读全文
posted @ 2016-06-17 13:46 疯子110 阅读(1364) 评论(0) 推荐(0) 编辑