【发布时间】:2020-04-18 01:42:34
【问题描述】:
我曾尝试使用可排序的 Jquery-Ui。我是这样做的:
import React from 'react';
import $ from 'jquery';
import sortable from 'jquery-ui/ui/widgets/sortable';
class test extends React.Component {
componentDidMount() {
$('.element').sortable();
}
render() {...}
}
这很好,但我有一个问题: 我收到警告: 编译时带有警告。 'sortable' 已定义但从未使用过
如果我忽略了可排序的导入,它就不起作用。 我该如何解决?
【问题讨论】:
标签: javascript jquery reactjs jquery-ui jquery-ui-sortable