0
即時通訊使用以下功能來顯示數據後,用戶點擊註冊button.This工程完美罰款Mozilla Firefox,但給谷歌瀏覽器和Android瀏覽器本地代碼錯誤,IM錯了?console.log在谷歌瀏覽器和Android瀏覽器的本地代碼錯誤
function postdata(){
var chkfrm = checkdata();
if(chkfrm == 0){
var url = 'http://domain.com/index.php/Signup/signin';
$.ajax({
type: "POST",
url: url,
data: $("#formI").serialize(), // serializes the form's elements.
beforeSend:function(){
$("#signupdiv").html('<img src="http://domain.com/images/signuploading.gif" />');
},
success:function(data)
{
$("#signupdiv").html(data);
},
error:function() {
alert(console.log);
}
});
}
else {
$("#msgjava").html('<p>We need a little bit information from you.Please fill it.</p>');
return false;
}}
我應該怎麼在這裏提醒此代碼IM在JavaScript的 –
@SPSingh'錯誤不好:功能(數據){警報(數據); }' – fiction
returned me [object Object] –