$(".aaron2").on('click', function() { $('a').wrap(function() { return '<div class="' + $(this).text() + '" />'; })})关于这段 return '<div class="' + $(this).text() + '" />';代码里面的引号怎么什么意思?没怎么看懂!麻烦高手解析一下
1 回答

梦里花落0921
TA贡献1772条经验 获得超6个赞
其实就是<div class=" + $(this).text() + " />
=><div class="$(this).text()" />
添加回答
举报
0/150
提交
取消