Jquery uploadify 多余的Get请求(404错误)的解决方法
在使用jquery uploadify时如果不设置button_image_url参数,就会出现一些多余的get请求,甚至报404的错误,这是该插件的一个bug,官方给出的解决方案如下:
找到如下代码:
this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url)
修改成
this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); this.settings.button_image_url = this.settings.button_image_url ? SWFUpload.completeURL(this.settings.button_image_url) : this.settings.button_image_url
相关推荐
csstpeixun 2020-06-28
88407013 2020-06-16
Dreamya 2020-06-09
蓝天梦 2020-01-25
lanzhusiyu 2019-12-30
霸王棍 2011-05-12
88407013 2017-09-19
麦当劳 2011-12-15
yanghan 2011-09-15
wawaboss 2012-04-10
Linjunhan 2019-07-01
yxlnum 2014-01-05
xyc 2012-08-29
lwly 2019-06-27
MusicPeng 2013-07-19
wodetian 2019-06-21
zmosquito 2012-11-07