Js错误: obj.parents is not a function
代码:
(1)
<div class="ViewMore" id="viewmore${i}" onclick="CLICK(this)";>
展开更多 <i class="iconfont icon-gd"></i>
</div>;
展开更多 <i class="iconfont icon-gd"></i>
</div>;
(2)
function CLICK(obj) {
var p = obj.siblings('.Mobile_bottom').children('.Mobile_bottom_p');
}
function CLICK(obj) {
var p = obj.siblings('.Mobile_bottom').children('.Mobile_bottom_p');
}
obj 为DOM,需改为 $(obj)