Namespace declaration statement has to be the very first statement or after any declare call in the script 解决办法: 将页面转为utp-8无dom格式就OK了。