
JQuery
失控滴原味鸡
In me the tiger sniffs the rose.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
jquery根据value修改select选中项
$("#selectoroption[value='"+value+"']").attr("selected","selected"); 其中selector为选择器id value为要选中的option的值 该方法也可以根据text修改选中项原创 2016-07-10 16:01:50 · 1290 阅读 · 0 评论 -
jquery和js将json字符串转json对象
如果用jQuery: $.parseJSON('{"name":"John"}'); 如果不用jQuery,可以引用json2.js: JSON.parse('{"name":"John"}');原创 2016-09-16 16:11:05 · 423 阅读 · 0 评论 -
jquery监听动态加载的对象的click方法
$(document).on('click','.swiper-btn',function(){ $('.swiper-current').attr('class','swiper-btn swiper-wait');//将原选中按钮的状态设置成未选中 $(this).attr('class','swiper-btn swiper-current');//将当前点击的按钮设置成选中原创 2017-05-01 18:12:38 · 4326 阅读 · 0 评论