![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
文章平均质量分 70
彼之方
山重水复疑无路,柳暗花明又一村
展开
-
button元素与input元素的区别
一、button元素 1.type属性为button、reset、submit。 2.button元素在浏览器中的默认值不同,一定要明确指定button类型(IE中为button,其他浏览器为submit) 3. 表单中使用button元素时,不同的额浏览器提交的值不一样(IE提交的是button元素之间的值,其他浏览器提交的是 button元素的v原创 2017-11-20 17:46:40 · 2382 阅读 · 1 评论 -
web标签页之间的通信
标签页之间的通信,遵循同源策略。1.localStroage 当对localStroage进行添加、删除、更改操作时,会触发stroage事件。所以通过监听stroage事件,获取到localStroage的信息。test.html<input id="name" type="text"> <input type="button" id="btn" value="提交&qu原创 2018-05-25 17:43:10 · 342 阅读 · 0 评论