获取错误未捕获的SyntaxError:单击Onclick时出现意外的令牌非法 [英] Getting error Uncaught SyntaxError: Unexpected token ILLEGAL while clicking on Onclick

查看:102
本文介绍了获取错误未捕获的SyntaxError:单击Onclick时出现意外的令牌非法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我正在使用的html代码

Below is the html code which i am using

<a onclick="submit_details('143','v
VASANT','PATIL','8275053468','425201');" href="javascript:;">2</a>

下面是该函数的调用

function submit_details(pid,fname,lname,phone,zip){
    $("#sp_value").val(pid);
    $("#sf_value").val(fname);
    $("#sl_value").val(lname);
    $("#sph_value").val(phone);
    $("#sz_value").val(zip);
    $("#detail_form").submit();
}

单击我正在收到错误",但未捕获到SyntaxError:错误控制台中出现意外的令牌ILLEGAL

whicle clicking i am getting error Uncaught SyntaxError: Unexpected token ILLEGAL in the error console

推荐答案

单行显示

 <a onclick="submit_details('143','v VASANT','PATIL','8275053468','425201');" href="javascript:;">2</a>

这篇关于获取错误未捕获的SyntaxError:单击Onclick时出现意外的令牌非法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆