2012-07-11 72 views

回答

0

你可以嘗試這樣的事情

function lockUserOnInput() { 

    if(! dijit.byId('NumberBox').validate()) { 
    dijit.byId('NumberBox').focus(); 
    dijit.byId('NumberBox').inputNode.focus(); // make damn sure 
    } 

} 

setInterval(lockUserOnInput, 250); // set the interval as intense as you need it to be :) 
相關問題