繁体   English   中英

我该如何使这个矮子可运行?

[英]How can I make this plunker runnable?

我正在尝试检查我的离子项目,该项目是通过angular js构建的,但无法在plunker上运行它。 它可以在我的本地计算机上运行,​​并带有所有rpm软件包等

<!DOCTYPE html>
<html data-ng-app='starter.controllers'>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-touch.js"></script>

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

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.min.css">

      <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> 


    <!-- your app's js -->
    <script src="app.js"></script>
    <script src="controllers.js"></script>


    <script src="services.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"></script>    

  </head>
  <body ng-app="starter" style="background-color: #E6E6FA; ">
    <!--
      The nav bar that will be updated as we navigate between views.
    -->
    <ion-nav-bar class="bar-stable">
      <ion-nav-back-button>
      </ion-nav-back-button>
    </ion-nav-bar>
    <!--
      The views will be rendered in the <ion-nav-view> directive below
      Templates are in the /templates folder (but you could also
      have templates inline in this html file if you'd like).
    -->
    <ion-nav-view></ion-nav-view>
  </body>
</html>

在此处链接到Plunker,也需要您的建议以对其进行改进

jQuery未加载,因为插件需要https。 只需将网址更改为src="https://code....

而且您正在使用离子库,因此您应该包括离子库。

<script src="https://code.ionicframework.com/1.3.1/js/ionic.bundle.min.js"></script>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM