【问题标题】:Where does the index.html redirect to? [Moodle Mobile][Javascript]index.html 重定向到哪里? [Moodle 手机][Javascript]
【发布时间】:2017-02-06 15:48:21
【问题描述】:

我目前的任务是将二维码生成功能添加到 Moodle Mobile 的源代码到 add more functions
我使用的源代码来自这个site

由于我在 Javascript(或 Moodle 正在使用的 AngularJS)方面没有任何经验,所以当我在寻找 add 函数的地方时,我很困惑。
所以,当应用程序加载时,我卡在第一页,即index.html

当前的index.html 看起来像下面提到的代码:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <meta http-equiv="Content-Security-Policy" content="default-src * filesystem: cdvfile: file: gap: https://ssl.gstatic.com; img-src * filesystem: gap: data: cdvfile: file: https://ssl.gstatic.com android-webview-video-poster:; style-src 'self' 'unsafe-inline' filesystem: cdvfile: file:; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* filesystem: cdvfile: file:">
    <title></title>
    <link href="build/mm.bundle.css" rel="stylesheet">
    <script src="lib/ionic/release/js/ionic.bundle.js"></script>
    <script src="cordova.js"></script>
    <script src="lib/angular-translate/angular-translate.js"></script>
    <script src="lib/angular-translate-loader-partial/angular-translate-loader-partial.js"></script>
    <script src="lib/ngCordova/dist/ng-cordova.js"></script>
    <script src="lib/ydn.db/jsc/ydn.db-dev.js"></script>
    <script src="lib/angular-md5/angular-md5.js"></script>
    <script src="lib/angular-aria/angular-aria.js"></script>
    <script src="lib/moment/min/moment-with-locales.js"></script>
    <script src="lib/jszip/dist/jszip.js"></script>
    <script src="lib/oclazyload/dist/ocLazyLoad.js"></script>
    <script src="lib/ckeditor/ckeditor.js"></script>
    <script src="lib/angular-ckeditor/angular-ckeditor.js"></script>
    <script src="lib/angular-messages/angular-messages.js"></script>
    <script src="build/mm.bundle.js"></script>
    <style></style> <!-- Empty style to make easier to test styles using Inspector. -->
  </head>
  <body ng-app="mm">
    <ion-nav-view></ion-nav-view>
  </body>
</html>

从我的角度来看,index.html 在浏览器上应该看起来是空的,因为无论如何标题和正文中都没有 content
但是当我在网络浏览器中打开index.html 时,它实际上会显示一个带有标题Connect to MoodleSite address 等形式的正确页面。

一个例子是here

所以我的问题是,index.html 链接到哪里?我在哪里可以找到 Web 浏览器上显示的网站的源代码?我怀疑index.html 链接到其他内容,如我打开此网页时在网络浏览器上显示的 URL:

file:///C:/Users/teeti_000/Documents/GitHub/moodlemobile-phonegapbuild/index.html#/mm_login/site

我尝试在相关文件夹中搜索 mm_login,但除了引用 mm_login 和 mm.bundle.js、mm.bundle.min.css 和 mm.bundle 的其他 .html 文件之外找不到任何内容。 css

谁能帮我解决这个问题?
最好的问候。

【问题讨论】:

标签: javascript angularjs moodle moodle-api moodle-mobile


【解决方案1】:

请检查您的目录中是否有“模板”文件夹。由于 Angular 正在加载其他模板,这些模板执行 HTML Stuff。 moodlemobile-phonegapbuild/core/components/login/templates/site.html 可能是正确的

【讨论】:

    猜你喜欢
    • 2013-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-02
    • 2014-01-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多