gpt4 book ai didi

popup - 语法错误 : missing ; before statement in kendoui

转载 作者:行者123 更新时间:2023-12-04 20:45:42 24 4
gpt4 key购买 nike

当我点击更新按钮弹出剑道网格时,怎么会出现这个错误?

  • Firefox 浏览器中的错误是这种形式:SyntaxError: missing ; before d.0=value
  • 在 Chrome 浏览器中:Uncaught SyntaxError: Unexpected number

  • 我已经上传了一个关于这个错误的视频,用于详细说明

    Jsfiddle Code

    Video

    代码

    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();
    }
    });
    }

    最佳答案

    您应该提供更多代码来检测您的代码有什么问题,但请阅读 this可以帮助你:

    Such error occurs when the transport definitions are inconsistent. In other words, if you would like to use custom transport method, all transport types should be defined as functions.

    Having a standard read transport and custom update is not supported. Please configure all transports as functions and let me know if the error still occurs.

    关于popup - 语法错误 : missing ; before statement in kendoui,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18271731/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com