SyntaxError:missing; 在kendoui发表声明之前

obj*_*son 5 popup kendo-ui kendo-grid

怎么样,当我点击更新按钮弹出kendo网格时,这个错误发生了什么?

  • Firefox浏览器中的错误采用以下形式:SyntaxError: missing ; before d.0=value

  • 并在Chrome浏览器中:Uncaught SyntaxError: Unexpected number

我上传了一个关于此错误的视频,用于详细说明

Jsfiddle Code

视频

transport: {
    read: {
        url: 'https://dl.dropboxusercontent.com/sh/u9oxg5f6uweqh40/CbR3pNVg04/documentj',
        dataType: 'json',
        type: 'get',
        cache: false
        },
    update: function(e) { return true; }
}
save: function (e) {
    var that = this;
    $.ajax({
        url: '/echo/json',
        type: e.model.id == null ? 'POST' : 'PUT',
        contentType: 'application/json',
        dataType: 'json',
        data: JSON.stringify(e.model),
        success: function (data) {
            // Alertify.log.success(data);
            console.log('ok dadasaved');
            that.refresh();
        },
        error: function (data) {
            //  Alertify.log.error(data);
            console.log('no datasaved');
            that.cancelRow();
        }
    });
}
Run Code Online (Sandbox Code Playgroud)