Ember未被捕获#< unrecognizedurlerror> [英] Ember uncaught #<unrecognizedurlerror>

查看:77
本文介绍了Ember未被捕获#< unrecognizedurlerror>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我是初学者,我正在尝试构建一个应用程序并在他们的网站上关注教程,我真的认为我的代码就像他们的代码但是当我尝试在chrome上运行应用程序时没有显示所以我打开控制台,我说没有被捕#< unrecognizedurlerror>知道为什么会这样吗?



index.html:



 <  !DOCTYPE     html  >  
< html xmlns = http://www.w3.org/1999/xhtml >
< head >
< meta charset = utf-8 >
< title > IT < / title >
< link href = 内容/normalize.css\" rel = 样式表 / < span class =code-keyword>>
< link href = 内容// style.css rel = 样式表 < span class =code-keyword> / >
< link href = Content / bootstrap.css rel = stylesheet / >
< / head >
< body >
< script type = text / x-handlebars >
< div class = navbar >
< div class = navbar-inner >
< a class = navbar-brand href = index > IT < / a >
< ul class = nav >
< li > < span class =code-keyword>< a href = > 事件日历< / a > < / li > ;
< li > < a > 帮助< / a > < / li >
< / ul >
< / div >
< / div < span class =code-keyword>>
< / script >

< script src = Scripts / jquery-2.1.1.js > < / script >
< script src = Scripts / handlebars.js > < / script >
< script src = Scripts / ember.prod.js > < / script >
< script src = Scripts / showdown.js > < / script >
< script src = 脚本/时刻。 js > < / script >
< 脚本 src = Scripts / app / application.js > < / script >
< script src = Scripts / app / routes.js > < / script >
< script src = 脚本/app/models.js\"> < / script >
< script src = Scripts / app / controllers.js > < / script >
< / body >
< / html >





application.js:



 App = Ember.Application.create(); 

解决方案

 <   link     href   = 内容  //   style.css    rel   =  stylesheet     /  >  





网址中不应有双斜杠。


hey guys, I'm new to ember and was trying to build an app and was following a tutorial on their website and i really think my code is like theirs but when I try to run the app on chrome nothing show so i open the console and i says uncaught #<unrecognizedurlerror> any idea why this might be?

index.html:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>IT</title>
    <link href="Content/normalize.css" rel="stylesheet" />
    <link href="Content//style.css" rel="stylesheet" />
    <link href="Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
    <script type="text/x-handlebars">
        <div class="navbar">
            <div class="navbar-inner">
                <a class="navbar-brand" href="index">IT</a>
                <ul class="nav">
                    <li><a href="#">Event Calendar</a></li>
                    <li><a>Help</a></li>
                </ul>
            </div>
        </div>
    </script>

    <script src="Scripts/jquery-2.1.1.js"></script>
    <script src="Scripts/handlebars.js"></script>
    <script src="Scripts/ember.prod.js"></script>
    <script src="Scripts/showdown.js"></script>
    <script src="Scripts/moment.js"></script>
    <script src="Scripts/app/application.js"></script>
    <script src="Scripts/app/routes.js"></script>
    <script src="Scripts/app/models.js"></script>
    <script src="Scripts/app/controllers.js"></script>
</body>
</html>



application.js:

App = Ember.Application.create();

解决方案

<link href="Content//style.css" rel="stylesheet" />



There should not be a double slash in the url.


这篇关于Ember未被捕获#&lt; unrecognizedurlerror&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆