![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQ
what_zhou
这个作者很懒,什么都没留下…
展开
-
jquery监听div或者span内文本值的改变
html页面 jquery代码 $("#ceshi").bind(‘DOMNodeInserted’,function(e){ //执行相应的操作 });原创 2020-07-29 11:57:22 · 1085 阅读 · 0 评论 -
jQuery对元素取值与赋值的方法
Jquery给基本控件的取值、赋值 : var str = $(’#txt’).val(); $(’#txt’).val(“Set Lbl Value”); //文本框, $(’#txt’).val(" “); //清空内容 文本区域: $(”#text_id").attr(“value”,’’);//清空内容 $("#text_id").attr(“value”,‘test’);// 填充内容 ...原创 2020-07-29 11:53:37 · 877 阅读 · 0 评论