1

我想使用动态表单小部件(演示 2:文件上传)

网址:http ://wbraganca.com/yii2extensions/dynamicform-demo2/source-code

一切都很好,但是当我按下“减号”按钮或“新建”按钮时,我从 ActiveForm.js 收到此错误:

TypeError: $(...).data(...) is undefined
methods.find()
$.fn.yiiActiveForm()
_fixFormValidaton/<()
.each()
jQuery.prototype.each()
_fixFormValidaton()
_addItem()
methods.addItem()
$.fn.yiiDynamicForm()
what is the problem?

有什么问题?

我的应用资产:

class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
    'css/site.css',
    'css/tabs.css',
    'css/tabstyles.css',
];
public $js = [
    'js/cbpFWTabs.js',
    'js/cbpHorizontalMenu.js',
];
public $depends = [
    'yii\web\YiiAsset',
    'yii\bootstrap\BootstrapAsset',
];

}

4

0 回答 0