JS脚本错误导致表单按钮无法执行,谷歌浏览器提示Uncaught SyntaxError: Unexpected token 50
functionget_mobile_code(){$.post('../sms.php',{mobile:jQuery.trim($('#mobile').val())...
function get_mobile_code(){
$.post('../sms.php', {mobile:jQuery.trim($('#mobile').val()),send_code:<?php echo $_SESSION['send_code'];?>}, function(msg) {
alert(jQuery.trim(unescape(msg)));
if(msg=='提交成功'){
RemainTime();
}
});
};
以上的代码在第二行出错 展开
$.post('../sms.php', {mobile:jQuery.trim($('#mobile').val()),send_code:<?php echo $_SESSION['send_code'];?>}, function(msg) {
alert(jQuery.trim(unescape(msg)));
if(msg=='提交成功'){
RemainTime();
}
});
};
以上的代码在第二行出错 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询