我想使用动态表单小部件(演示2:文件上传)
URL: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?
有什么问题?
我的AppAsset:
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',
];
}