今天设置tabBar时总是报错,
然后按照以前的注释东西找错,然后找了半天才发现,根源问题是json文件内不能添加注释
原因是
https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr
I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. I know that the lack of comments makes some people sad, but it shouldn't.
Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser.
还有就是安装微信小程序编译器(微信官方编译器)后,最好重启下电脑,昨天保存文件后必须关闭项目,重新打开才能刷新页面新数据,今天打开电脑后就正常了。。。。。
网友评论