标签:erro pre string def java asc script ext 定义
问题描述:Uncaught ReferenceError: ···is not defined
所遇到的问题及解决办法:
引号的基本问题:
li_last.innerHTML = "<a href=‘#‘onclick=‘searchUserge(" + next + "," +username+")‘>»</a>";
改为;
li_last.innerHTML = "<a href=‘#‘onclick=‘searchUserge(" + next + ",\"" +sname+"\")‘>»</a>";
next为int sname为String
Uncaught ReferenceError: ···is not defined JavaScript 参数定义问题
标签:erro pre string def java asc script ext 定义
原文地址:https://www.cnblogs.com/yzsh0809wc/p/14091061.html