报错了。可能是Struts2标签错误,但是不知道啥情况?望指正
functionpanduanzhuce(){varusername=document.getElementById("username")varidcard=docum...
function panduanzhuce() {
var username = document.getElementById("username")
var idcard = document.getElementById("idCard")
var vipnumber = document.getElementById("vipNumber")
var adddate = document.getElementById("addDate")
<s:if test="%{#request.result==1}">
username.value = "";
idcard.value = "";
vipnumber.value = "";
adddate.value = "";
alert("注册成功!");
</s:if>
<s:if test="%{#request.result==-1}">
alert("注册失败,请重新注册!");
</s:if>
} 展开
var username = document.getElementById("username")
var idcard = document.getElementById("idCard")
var vipnumber = document.getElementById("vipNumber")
var adddate = document.getElementById("addDate")
<s:if test="%{#request.result==1}">
username.value = "";
idcard.value = "";
vipnumber.value = "";
adddate.value = "";
alert("注册成功!");
</s:if>
<s:if test="%{#request.result==-1}">
alert("注册失败,请重新注册!");
</s:if>
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询