1、jquery和js对象相互转换

js对象转换称jquery对象: $(js对象) 转了就可以使用jquery选择器和jquery的方法

例如: console.log($(item));

jquery对象转换称js对象: jquery[0] 或者$(this).get(0)

例如: console.log($(item)[0]);

posted @ 2022-01-11 18:40  青仙  阅读(75)  评论(0编辑  收藏  举报