某个插件引入后报错 例如 $elemetn.select2 is not a function. 最大可能是插件文件有短缺,没有引入正确。select 2 中的数据 text 中必须是字符串。
js中数据类型之间的相互转换:字符串转换为number时:parseInt(t);其他类型转换为字符串类型:t+'';即可!!!!!!