TypeError: Act is undefined
function uploadPic(date){
if(data['body.retcode'] == 0){
$("#url").text(data['body.store_url']);
setTimeout(function(){
$("#img").attr("src",data['body.store_url'])
},2000);
}else{
alert(data['body.rspmsg'])
}
}
$("#demo_uploadPic").click(function(){
Act.tae.uploadPic('picFile','uploadPic')
});
在html中调用,Firefox报错TypeError: Act is undefined Act.tae.uploadPic('picFile','uploadPic')
------解决方案--------------------提示很清楚,没有Act这个变量或未赋值
估计少加载了个js文件,firebug什么的看一下网络请求,有没有失败的