1. 程式人生 > >js註釋後Failed to load resource: the server responded with a status of 404 (Not Found)

js註釋後Failed to load resource: the server responded with a status of 404 (Not Found)

畫面輸入框對應內容長度限制的js內容進行註釋(在controller.js中進行註釋)後,畫面出現Failed to load resource: the server responded with a status of 404 (Not Found)

利用:

/* $("#upClassCar").formValidator().regexValidator({。。。});*/

進行註釋後報錯,找不到對應action。

更改為:  

// $("#upClassCar").formValidator().regexValidator({
// min:0,
// max:1000,
// regexp:regexEnum.intege1,
// onerror:vFixSizeAlert('0-4','intege1','接班結存')
// });

不在報錯。