Composer-view.js文件出错
Composer-view.js file gives me an error
我收到这个错误。composer-view.js?ver=4.5.3:6未捕获类型错误:无法读取未定义的属性"attributes"。
我在更改代码后得到了这个。
html2element: function(html) {
var $template, attributes = {},
template = html;
$template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) {
attributes[attr.name] = attr.value}),
this.$el.attr(attributes).html($template.html()), this.setContent(),
this.renderContent()
},
正因为如此,我无法在我的视觉作曲家的后端视觉合成器编辑器中添加更新或删除。我使用的是VC-4.8.4
我使用的是Visual Composer 4.5.8,我认为它与wordpress 4.5不兼容。
为了解决一个问题,我将我的可视化编辑器更新为4.11.2.1。我认为是最新的,现在效果很好。
我已经参考了这个链接。Wordpress支持链接,描述插件问题
您的变量$template
未定义
var $template; // undefined
...
_.each($template.get(0)....) // $template is still undefined
相关文章:
- 节点Js:How to catch a“;没有这样的文件或目录“;读取线模块出错
- Composer-view.js文件出错
- 从静态文件加载json时出错
- 代码在shell中运行,但提供'可以't查找变量'从文件运行时出错
- 从.ascx文件调用Javascript函数时出错
- 使用 broccoli-requirejs 从同一棵树构建两个不同的文件时出错
- Jquery Ajax 上传大文件会出错
- 在使用 GULP 任务将所有 JS 连接到单个 JS 文件中时,在 AngularJS 中出错
- 从 JavaScript 中的本地 JSON 文件读取时出错
- 将内联 Javascript 移动到外部文件时出错 - 我该如何解决这个问题
- Ajax 调用时出错 ->发送两个文件而不是一个文件
- 在 Ember 插件中导入配置文件时出错
- 从另一个文件调用Javascript对象时出错
- 在nodeJS和Express框架中找不到文件时出错
- 在asp.net中打开名为ambersand的文件时出错
- Ajax调用工作正常,但php文件在从对象检索属性时出错
- javascript文件出错,但控制台没有
- 在Vim中保存JavaScript文件时出错
- 404在nodejs+Ionic应用程序中从index.html中的另一个文件夹导入js文件时出错
- 以firefox扩展名创建文件时出错