开发者

missing ; before statement jquery error

开发者 https://www.devze.com 2023-02-19 06:30 出处:网络
I get this error that I don\'t understand: `missing ; before statement` Here is the code }, \'addevent\' : function(data, formData){

I get this error that I don't understand:

`missing ; before statement`

Here is the code

        },
        'addevent' : function(data, formData){
            var entry = fx.deserialize(formData); 
        }, 
        'deserialize' : function(str){
            var data = str.split("&"),

            pairs = [], entry开发者_C百科{}, key, val; //ERROR


The syntax

entry{}

doesn't look right to me.

Do you want entry={},


Have it in one line:

var data = str.split("&"), pairs = [], entry{}, key, val;

You are missing = sign, should be:

..., entry = {}, ...


},
        'addevent' : function(data, formData){
            var entry = fx.deserialize(formData); 
        }, 
        'deserialize' : function(str){
            var data = str.split("&");

            pairs = [];
            entry = {key, val};


        var data = str.split("&"), <====== Here should be ';'

        !var! pairs = [], entry{}, key, val; //ERROR // var should be again
0

精彩评论

暂无评论...
验证码 换一张
取 消