jQuery---$(...).percentageLoader is not a function
浏览器报错:$(...).percentageLoader is not a function
到调用该方法的html文件中:
按ctrl,点击percentageLoader 跳转到js文件中percentageLoader 相关部分:
发现要用.fn , 于是加上.fn
清除浏览器缓存的临时文件,刷新界面,又报错:cannot read property ‘percentageLoader’ of undefined:
哎哟,我滴个神呐。。最终我翻看了《JavaScript权威指南(第6版)》
第19章 jquery类库,
使用$.noConflict();就解决了问题:
综上所述:
当浏览器报错:$(...).percentageLoader is not a function,
使用$.noConflict();即可解决。
更多iOS、Android、Python、Java、MySQL的文章,请点击:
http://blog.****.net/jamiecheung
http://blog.****.net/u010841622