JQuery
Grit爱笑
<bits/stdc++.h> Call me AC!
展开
-
JQuery的$(selector).attr()+$("#a").text()+val()
返回属性的值: $(selector).attr(attribute) 设置属性和值: $(selector).attr(attribute,value) 使用函数设置属性和值: $(selector).attr(attribute,function(index,currentvalue)) 设置多个属性和值: $(selector).attr({attribute:value, a...原创 2020-03-04 14:01:34 · 329 阅读 · 0 评论 -
jQuery之$("#") 与 js中的$("#"+) +jQuery中变量加$和不加$有什么区别
# 选取带有唯一的指定 id 的元素。 id 引用 HTML 元素的 id 属性。 相同的 id 值只能在文档中使用一次。 1.-------------------------------------------------------------------------- $("#xx")表示得到一个xx""的组件。 $("#"+xx)表示xx是一个变量,假如xx的值是aa,就表示与...原创 2020-03-04 13:27:44 · 2727 阅读 · 0 评论