摘要: 1、input标签中 submit可以进行提交,而在js中,任何标签可以通过Dom提交表单 <form id="f1" action="http://www.baidu.com"> <input type="text" /> <input type="submit" value="提交" /> <a 阅读全文
posted @ 2020-03-25 11:35 凸凸yolotheway 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、属性操作: attributes 获取所有属性 getAttribute 获取某个属性 removeAttribute 移除某个属性 setAttribute 设置某个属性 示例如下: 2、创建标签,并添加到html中 现在有这样一行代码如下,想要实现点击每点击一下按钮“+”时,输入框增加一个 阅读全文
posted @ 2020-03-25 10:34 凸凸yolotheway 阅读(123) 评论(0) 推荐(0) 编辑