layui报错Uncaught TypeError: tree is not a function
layui报错Uncaught TypeError: tree is not a function
tree({
elem: “#classtree”
,
data: data
,
click: function (node) {
var $select = ((((this)[0].elem).parents(“.layui-form-select”);
$select.removeClass(“layui-form-selected”).find(“.layui-select-title span”).html(node.name).end().find(“input:hidden[name=‘selectID’]”).val(node.id);
}
});
这是layui的1版本写法,2版本应该这样写
tree.render({
elem: “#classtree”
,
data: data
,click: function (node) {var $select = $($(this)[0].elem).parents(".layui-form-select");$select.removeClass("layui-form-selected").find(".layui-select-title span").html(node.name).end().find("input:hidden[name='selectID']").val(node.id);}});
layui报错Uncaught TypeError: tree is not a function相关推荐
- 【解决】控制台报错Uncaught TypeError: Object(...) is not a function at eval (vue-router.esm-bundler.js
打开http://localhost:8080/,控制台报错 Uncaught TypeError: Object(...) is not a functionat eval (vue-router. ...
- JS报错 Uncaught TypeError: undefined is not a function,解决
Chrome调试报错:Uncaught TypeError: undefined is not a function,所有的数据都显示不出来 原因正如错误提示:调用了一个没有定义的方法,实际是一个空值 ...
- Javascript 报错 Uncaught TypeError: x is not a function 常见错误总结
这是我近期犯的比较傻的一个错误,一定要mark一下. 以下代码段是借用父类构造函数来实现继承的一种方法, 不过在ES6已经可以使用类了,这个作为了解对阅读以前的代码还是有好处的. 代码非常简单, 1 ...
- 小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined
小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined Component({/*** 组件的属性列表*/propert ...
- js代码中for循环里绑定onclick事件报错Uncaught TypeError Cannot set properties of undefined (setting ‘className‘)
jsfor循环里绑定onclick事件报错Uncaught TypeError Cannot set properties of undefined (setting 'className') 我想要 ...
- JsonMap对象的获取与前台浏览器报错Uncaught TypeError: Cannot read property ‘map‘ of undefined
JsonMap对象的获取与前台浏览器报错Uncaught TypeError: Cannot read property 'map' of undefined 经过不断排查以后发现是自己的后台传的值出 ...
- 立即执行函数报错Uncaught TypeError: (intermediate value) is not a function.
立即执行函数报错Uncaught TypeError: (intermediate value) is not a function. 文章目录 立即执行函数报错Uncaught TypeError: ...
- JS报错-Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on...
报错信息:Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on stric ...
- vue-cli 外部引入vue-router报错 Uncaught TypeError: Cannot redefine property: $router
在优化基于vue-cli开发的vue项目中,把vue-router改成外部引入的时候, /build/webpack.base.conf.js配置参数: externals: {'vue': 'Vue ...
最新文章
- numpy随机生成数组
- 网站建设你够专业吗?——不需说,从色彩搭配就能看出来
- (转)explorer.exe应用程序错误:0x000000该内存不能为read的解决方法
- git-flow 流程 备忘清单
- servlet中web.xml配置详解
- python情感分析算法_Python 情感分析
- 分布式服务框架 HSF
- C++定义复数类(Complex)
- FFmpeg超低延迟视频推流笔记
- 支付宝账号转账/扫码即可到转账页
- 一个脚本打比赛之SMP WEIBO 2016
- bh1750c语言程序,BH1750FVI数字光线强度传感器 51单片机源程序
- Frustum culling
- ubuntu18使用preseed文件定制ISO镜像实现自动化安装
- 站长便民小工具引流网站源码_站长引流工具箱
- Vultr删除信用卡
- PCB阻焊层介绍与设计经验总结
- SAP中导出期末或指定日期库存
- DataX篇—离线同步作业分析及JSON构建
- 2023年福建农林大学程序设计校赛个人题解(无D解析)
热门文章
- win下搭建小程序服务器,win下搭建小程序服务器
- win更新管理工具有用吗_7个非常有用的在线业务管理工具
- jenkins 构建提示 can‘t open file xxxx [Errno 2] No such file or directory
- JavaScript点击按钮开关灯案例
- 【Unity】M_studio-随机RoughLike项目优化:动态代码生成对象
- 互联网公司的前台让我学 Flutter :)
- IE已经阻止此站点以不安全的方式使用ActiveX控件的解决
- redis主从架构(上)
- nyoj325 zb的生日(DFS)
- 集成简易图片在线编辑,实现简易图片滤镜裁剪添加对话框