我的有一个页面,我想用它来代替默认的蓝色网页,该页面显示“这个移动应用程序已经启动并运行”。我将index.html放在wwwroot文件夹中,并在app.js中将homePage值设置为false
var mobile = azureMobileApps({
// Explicitly enable the Azure Mobile Apps home page
homePage: false
});
但这一页没有被送达。我得到了一页空白页和这段文字
Cannot GET /
为了让我的移动应用程序能够提供静态HTML和JS页面,我还需要做什么呢?
我的单页组件文件:
<template>
<div></div>
</template>
<style lang="scss" scoped>
</style>
<script lang="ts">
export const component = Vue.extend({...});//This is my component.
export let foo = 'bar'; //Other vars I want to export.
</scr
解析为活动的ServiceWorkerRegistration,但是如果有多个服务工作人员在发挥作用(例如,以前页面加载的服务工作者,同一页面中的多个注册),则可以解析多个服务工作人员。如何确保在执行代码块时,特定的服务工作人员正在处理网络事件?
也就是说,我如何编写一个函数registerReady(scriptURL, options),该函数可用于如下所示:
registerReady("foo.js").then(function (r) {
// "foo.js" is active and r.active === navigator.ser