$.ajaxSetup({ cache: false }); 在ajax之前加这个就好 可以取消ie的缓存。这样就可以解决因为缓存问题导致ajax获取不到新的资源 ie 7 8 不支持 trim() 用 replace(/^\s*|\s*$/g, “”)来代替去掉前后空格 console.log( typeof Number(“qw123″)==”number”);//true,这里要主要NaN…
$.ajaxSetup({ cache: false }); 在ajax之前加这个就好 可以取消ie的缓存。这样就可以解决因为缓存问题导致ajax获取不到新的资源 ie 7 8 不支持 trim() 用 replace(/^\s*|\s*$/g, “”)来代替去掉前后空格 console.log( typeof Number(“qw123″)==”number”);//true,这里要主要NaN…