摘要: 对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。对于HTML元素我们自己自定义的DOM属性,在处理时,使用attr方法。 <input id="chk2" type="checkbox" checked="checked" action="delate"/> 以上HTML中JQ获取 阅读全文
posted @ 2018-03-07 12:01 归尘2016 阅读(111) 评论(0) 推荐(0) 编辑
摘要: var person1={ toLoginString:function(){ return "lili"; }, toString2:function(){ return "greg"; }};var person2={ toLoginString:function(){ return "lili 阅读全文
posted @ 2018-03-07 09:56 归尘2016 阅读(90) 评论(0) 推荐(0) 编辑