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{}, 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.