关于bootstrap-select赋值时候报错: e.stopPropagation is not a function
来源:互联网 发布:中国联通音乐软件有些 编辑:程序博客网 时间:2024/05/22 03:18
场景是:使用$('#vendorId').selectpicker('val',data.vendorId);给单选框赋值的时候js报错
然后不能代码更改单选框的值。
究其原因是因为selectpicker 没能完整的初始化,
现在添加第二行代码:
console.log("默认选中"+$('#vendorId').val());$('#vendorId').selectpicker();$('#vendorId').selectpicker('val',data.vendorId);
使其在赋值之前完成初始化工作。
问题解决
2 0
- 关于bootstrap-select赋值时候报错: e.stopPropagation is not a function
- jquery 报错 e.nodeName.toLowerCase is not a function
- js 报错 $ is not a function
- $ocLazyLoad懒加载的时候 加载ui-grid报错 $$animateJS is not a function
- 关于js报$ is not a function 的问题
- 02 bootstrap "modal : is not a function"
- TypeError: e[h] is not a function
- e.slice is not a function
- 关于react this.setState is not a function 的报错问题解决
- js报错:****is not a function 的解决方法
- js报错$('#form1').ajaxSubmit is not a function...
- js报错$('#form1').ajaxSubmit is not a function...
- Extjs 报错 this.addEvents is not a function
- js报错:TypeError: document.GetElementById is not a function
- js报错 :TypeError: yanzhengma is not a function
- js报错:TypeError: document.GetElementById is not a function
- ajaxFileUpload报错jQuery.handleError is not a function
- animate is not a function(zepto 使用报错)
- Spring AOP阐述
- url中向后台传递中文乱码解决方法
- android QCN备份还原方法
- 框架 day74 涛涛商城项目整合ssm,分页插件pagehelper,商品列表查询
- libevent简介和使用
- 关于bootstrap-select赋值时候报错: e.stopPropagation is not a function
- Java常见的几种内存溢出及解决方法
- OutOfMemoryError(内存溢出)
- image的srcset属性
- mysql通用二进制安装
- java 反射demo
- 关于谷歌chrome浏览器“您的链接不是私密链接”的解决办法
- ASP.NET Core应用:文件扫描上传
- Android编码规范