![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ajax
polarcoder
积少成多!
展开
-
判断远程图片是否存在
(1)//判断图片是否存在 function isImageExist(url){ if(url.length==0){ return false; } var isExist=true; $.ajax(url, { dataType: 'JSONP', async:false, timeout: 1000, success原创 2017-05-25 14:29:43 · 998 阅读 · 0 评论 -
jquery判断服务器文件是否存在
//判断图片是否存在 function isImageExist(url){ if(url.length==0){ return false; } var isExist=true; $.ajax(url, { type: 'get', async:false,//取消ajax的异步实现 timeout: 1000,原创 2017-05-16 11:18:05 · 4333 阅读 · 0 评论 -
【已解决】Uncaught SyntaxError: Unexpected token o in JSON at position 1
Uncaught SyntaxError: Unexpected token o in JSON at position 1 $.ajax({ type:"POST", url:webbase + "/account/checkIfAuth.do", data:{}, dataType:"json", async:fal原创 2018-02-03 15:21:25 · 2770 阅读 · 0 评论