0
我无法编写每个函数类 每当我编写以下内容时,它给我错误的原因是什么?无法在函数类中写入每个函数
<script>
var addLi = function($li) {
var $uls = $('ul');
$.each($uls, function(index, ul) {
// If this ul has less than 5 li's
// then add the li here
if ($(this).find('li').length < 5) {
$(this).append($li);
// exit the for loop since we have placed this li
return;
}
}
};
</script>
错过
);
的截图已经具备了,为什么你:'预期 ')''。解析器期望在那里有一个''''''。你不明白的是什么? – 2013-02-23 11:02:08