gpt4 book ai didi

javascript - 我怎样才能让这个 plunker 可以运行?

转载 作者:行者123 更新时间:2023-11-28 02:53:22 27 4
gpt4 key购买 nike

我正在尝试检查我的 ionic 项目,该项目是通过 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 链接 here , 还需要你的建议来改进它

最佳答案

jQuery 未加载,因为 plunker 需要 https。只需将 url 更改为 src="https://code....

并且您正在使用 ionic,因此您应该包含 ionic 库。

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

关于javascript - 我怎样才能让这个 plunker 可以运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38321059/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com