未捕获的SyntaxError:意外的令牌)

时间:2015-10-01 13:46:12

标签: javascript

function getSerialOverride() {

xdl_read_config(" xdl_serialports_onboard_override",

function(response){processSerialOverrideResponse(response);},

功能(xhr,状态,错误)             ); }

2 个答案:

答案 0 :(得分:1)

function(xhr, status, error) )
                        //  ^ where's the body of this function?

答案 1 :(得分:0)

我想你忘记了{}的最后一个功能:

function getSerialOverride() {
    xdl_read_config(
        "xdl_serialports_onboard_override",
        function(response){processSerialOverrideResponse(response);},
        function(xhr, status, error){}
    );
}