role =“manager”,它说“经理”未定义。请帮助。
function onSubmitClick(role)
{
.....
<input type="b
utton" class="button" name="btn_Submit" id = "btn_Submit" value="Submit"
onMouseOver="showToolTipMessage(T0097);showStatusBarMessage(T0097)"
onMouseOut="hideStatusBarMessage()"
onFocus="showStatusBarMessage(T0097)"
onBlur="hideStatusBarMessage()"
onClick="return onSubmitClick(<%=cstr(Role)%>)">
答案 0 :(得分:3)
你需要引用:
onClick="return onSubmitClick('<%=cstr(Role)%>')">
// ^---------------^
答案 1 :(得分:0)
&lt;%= cstr(Role)%&gt;点击它时评估经理?请尝试以下方法:
onClick="return onSubmitClick('<%=cstr(Role)%>')"