Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs angular.js:12477语法错误:意外标记>;_Angularjs - Fatal编程技术网

Angularjs angular.js:12477语法错误:意外标记>;

Angularjs angular.js:12477语法错误:意外标记>;,angularjs,Angularjs,已搜索,但尚未找到解决方案 环境: 角度1.4.7 铬43.0.2357.124 ubuntu个人电脑 问题: myBoardStatus.html使用socket.io与node.js服务器进行通信。 当node.js服务器看到“/myBoardStatus”时,它将发送文件(path.resolve(“../client/myBoardStatus.html”) myBoardStatus.html有以下行 <script src='/socket.io/socket.io.js'&g

已搜索,但尚未找到解决方案

环境: 角度1.4.7 铬43.0.2357.124 ubuntu个人电脑

问题: myBoardStatus.html使用socket.io与node.js服务器进行通信。 当node.js服务器看到“/myBoardStatus”时,它将
发送文件(path.resolve(“../client/myBoardStatus.html”)

myBoardStatus.html有以下行

<script src='/socket.io/socket.io.js'></script>
得到这个:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
angular.js:12477 SyntaxError: Unexpected token >
    at eval (native)
    at http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2620
    at Function.m.extend.globalEval (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2631)
    at m.fn.extend.domManip (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:23046)
    at m.fn.extend.append (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:20507)
    at null.<anonymous> (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:22055)
    at m.access (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:3286)
    at m.fn.extend.html (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:21623)
    at link (http://10.55.200.47:80/3rdparty/angular-1.4.7/angular-route.min.js:7:200)
    at aa (http://10.55.200.47:80/3rdparty/angular-1.4.7/angular.min.js:73:90) <div ng-view="" class="ng-scope">(anonymous function) @ angular.js:12477$get @ angular.js:9246aa @ angular.js:8791K @ angular.js:8289g @ angular.js:7680(anonymous function) @ angular.js:7555$get.g @ angular.js:7699r @ angular.js:8316x @ angular-route.js:935$get.n.$broadcast @ angular.js:16311(anonymous function) @ angular-route.js:619(anonymous function) @ angular.js:14745$get.n.$eval @ angular.js:15989$get.n.$digest @ angular.js:15800$get.n.$apply @ angular.js:16097h @ angular.js:10546K @ angular.js:10744z.onload @ angular.js:10685

(The 1st line "Synchronous XMLHttpRequest on the main thread is deprecated" is warning)
主线程上的同步XMLHttpRequest已被弃用,因为它会对最终用户的体验造成有害影响。有关更多帮助,请查看http://xhr.spec.whatwg.org/. angular.js:12477语法错误:意外标记> 评估时(本地) 在http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2620 在Function.m.extend.globalEval(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2631) 在m.fn.extend.domManip(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:23046) 在m.fn.extend.append处(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:20507) 在空(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:22055) 在m通道(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:3286) 在m.fn.extend.html(http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:21623) 在链接(http://10.55.200.47:80/3rdparty/angular-1.4.7/角度路线。最小js:7:200) 在aa(http://10.55.200.47:80/3rdparty/angular-1.4.7/angular.min.js:73:90)(匿名函数)@angular.js:12477$get@angular.js:9246aa@angular.js:8791K@angular.js:8289g@angular.js:7680(匿名函数)@angular.js:7555$get.g@angular.js:7699r@angular.js:8316x@angular.js:935$get.n.$broadcast@angular.js:16311(匿名函数)@angular route.js:619(匿名函数)@angular.js:14745$get.n.$eval@angular.js:15989$get.n.$digest@angular.js:15800$get.n.$apply@angular.js:16097h@angular.js:10546K@angular.js:10744z.onload@angular.js:10685 (第1行“主线程上的同步XMLHttpRequest已弃用”是警告) 如果我使用redirectTo而不是templateUrl,那么浏览器中不会发生任何事情

谢谢你的帮助

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
angular.js:12477 SyntaxError: Unexpected token >
    at eval (native)
    at http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2620
    at Function.m.extend.globalEval (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:2:2631)
    at m.fn.extend.domManip (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:23046)
    at m.fn.extend.append (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:20507)
    at null.<anonymous> (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:22055)
    at m.access (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:3286)
    at m.fn.extend.html (http://10.55.200.47:80/3rdparty/jquery/jquery.min.js:3:21623)
    at link (http://10.55.200.47:80/3rdparty/angular-1.4.7/angular-route.min.js:7:200)
    at aa (http://10.55.200.47:80/3rdparty/angular-1.4.7/angular.min.js:73:90) <div ng-view="" class="ng-scope">(anonymous function) @ angular.js:12477$get @ angular.js:9246aa @ angular.js:8791K @ angular.js:8289g @ angular.js:7680(anonymous function) @ angular.js:7555$get.g @ angular.js:7699r @ angular.js:8316x @ angular-route.js:935$get.n.$broadcast @ angular.js:16311(anonymous function) @ angular-route.js:619(anonymous function) @ angular.js:14745$get.n.$eval @ angular.js:15989$get.n.$digest @ angular.js:15800$get.n.$apply @ angular.js:16097h @ angular.js:10546K @ angular.js:10744z.onload @ angular.js:10685

(The 1st line "Synchronous XMLHttpRequest on the main thread is deprecated" is warning)