2019/03/26 烂笔头

某个插件引入后报错 例如 $elemetn.select2 is not a function. 最大可能是插件文件有短缺,没有引入正确。
select 2 中的数据 text 中必须是字符串。

js中数据类型之间的相互转换:
字符串转换为number时:parseInt(t);
其他类型转换为字符串类型:t+'';即可!!!!!!

猜你喜欢

转载自www.cnblogs.com/xmmy/p/10598760.html