标签:tco point ext regexp etc nsa dts com nts
this.assetCounts.focus();//聚焦
this.btnSave.cancel();//按钮取消
this.assetPerson.isValid()//是否有效,true:有效
if (isNaN(this.assetCounts.attr("value")) || !this.assetCounts.isValid()) {
alert(this.nls.MSG_ASSET_COUNT_IS_ERROR);
this.assetCounts.focus();
this.btnSave.cancel();
return;
}
regExp="^[1][3,4,5,7,8][0-9]{9}$" maxlength="11" minlength="11"
<input dojoType="bootstrap.form.ValidationTextBox" regExp="${nls.REGEXP_EX.COMMON_EX}" invalidMessage="${nls.ENTER_FAIL}" maxLength=50 dojoAttachPoint="roadManageName">
<input type="text" dojoType="bootstrap.form.ValidationTextBox" maxlength="33" value="" dojoAttachPoint="edtStatistical3" regExp="${nls.NUM_HOUR}" invalidMessage="${nls.PLEASE_ENTER_NUMBERHOUR}">
<input type="text" dojoType="bootstrap.form.ValidationTextBox" regExp="${nls.ALL_NUM}" invalidMessage="${nls.PLEASE_ENTER_ALLNUMBER}" maxlength="33" value="" dojoAttachPoint="edtOwnRate">
if (!this.edtTravelTime.isValid()){
alert(this.nls.INPUT_WRONG);
this.edtTravelTime.focus();
this.btnAdd.cancel();
return;
}
标签:tco point ext regexp etc nsa dts com nts
原文地址:https://www.cnblogs.com/7q4w1e/p/9549532.html