var $add = $operation.clone();
$add.find(".operationName").find('option')each(function(i,row){//这里有报错
if(oprations[i].operationName == $(this).val()){
$(this).attr('checked','checked');
return false;
}
});
报错内容:Uncaught SyntaxError: Unexpected identifier
我没有发现标点符号漏加之类的,麻烦懂的大侠们支援一下
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
少个点啊,哥们
$add.find(".operationName").find('option').each(function(i,row){Uncaught SyntaxError: Unexpected identifier 一般都是语法错误
楼上+1
each函数的前面少一个点