小编Amb*_*ani的帖子

发生客户端错误 - Drupal 8 REST API Post 方法

当我调用 Drupal 8 自定义 Rest API post 方法时,出现以下错误。请帮我解决这个问题,我在过去 4 天里一直在挣扎。

在此输入图像描述

rest resources drupal drupal-8

5
推荐指数
2
解决办法
2997
查看次数

TypeError:this._on不是函数

如何解决这个问题?我已经在这个问题上苦苦挣扎了4个多小时.

TypeError:this._on不是函数

我的代码在那里

this.input = $( "<input>" )
      .appendTo( this.wrapper )
      .val( value )
      .attr( "title", "" )
      .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
      .autocomplete({
        delay: 0,
        minLength: 0,
        source: $.proxy( this, "_source" )
      })
    this._on( this.input, {
      autocompleteselect: function( event, ui ) {
        ui.item.option.selected = true;
        this._trigger( "select", event, {
          item: ui.item.option
        });
      },
Run Code Online (Sandbox Code Playgroud)

jquery

2
推荐指数
1
解决办法
9693
查看次数

标签 统计

drupal ×1

drupal-8 ×1

jquery ×1

resources ×1

rest ×1