技术饭
Namespace declaration statement has to be the very first statement in the script
copylian
0 评论
15195 浏览
2017.06.12
Namespace declaration statement has to be the very first statement in the script,命名空间声明语句之前不能有任何的代码,好吧,今天一来就遇到这个问题,其实也就是说出现了UTF-8的BOM头,只要去掉就好了。
方法一:
使用Dreamweaver软件中的去除UTF-8的BOM头,适合于量少的文件
方法二:
使用代码执行的方式去除BOM,参考这个资料吧!就不多说了。

感谢你的支持,我会继续努力!

扫码打赏,感谢您的支持!
文明上网理性发言!