JQuery 方法 is not defined

任楚娴 2016-11-21 04:24:27

<c:forEach items="${existVendorAllocation }" var ="allocation">
<tr >
<td><a href="#" title="" onclick="viewAllocationList(${allocation.allocationListId});">${allocation.allocationTitle }</a></td>
<td>${allocation.serviceName }</td>
<td>${allocation.langDescription }</td>
<td>${allocation.allocationTier }</td>
<td>${allocation.fileType }</td>
<td>${allocation.allocationStatus }</td>
<td><a href="#" onclick="editNotes(this,${allocation.allocationVendorId})">${allocation.allocationNote }</td>
<td><input class="add_btn_create_invoice" type="button" onclick="delquote(this,${allocation.allocationVendorId},${allocation.allocationListId})" /></td>
</tr>
</c:forEach>


方法:
function editNotes(this,allocationVendorId){
var newNote=this.text;
alert(newNote);
$(opt).editable({
type:'text',
name:'edit note',
model:'inline',
url:'<%=request.getContextPath()%>/rmUserDetailController.do?action=editNote',
ajaxOptions:{
dataType:'json',
data:{
allocationVendorId:allocationVendorId,
newNote:newNote
}
success:function(json){
if(json){
AlertWithId("messageInfo","edit note false!","Message","messageInfo");
}
},
},

});
}
报错:

VM3222 rmUserDetailController.do?action=getAllocationListForVender&vendorId=1639:979 Uncaught ReferenceError: editNotes is not defined(…)
...全文
351 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,504

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧