DOJO事件何时被解雇?
例如,如果我有一个DOJO文本框什么时候会被触发,无论它是onBlur还是onkeyup?
<div name="Phone" id="wokPhone" invalidMessage="Please enter phone number"
dojoType="dijit.form.ValidationTextBox" regExp="^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$" label=" Phone Number :" maxLength="10"></div>
答案 0 :(得分:0)
默认情况下会触发模糊/更改事件,但如果启用了intermediateChanges,则会为每个键盘触发。
<div name="Phone" id="wokPhone" invalidMessage="Please enter phone number"
dojoType="dijit.form.ValidationTextBox" regExp="^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$"
label=" Phone Number :" maxLength="10" intermediateChanges="true">
</div>