jQuery $obj.val() vs $obj.attr(“value”){转}

来源:互联网 发布:mac系统怎么保存文档 编辑:程序博客网 时间:2024/06/05 00:56



The gist is that .attr(...) is only getting the objects value at the start (when the html is created).val() is getting the object's property value which can change many times.

0 0
原创粉丝点击