我需要创建一个窗口对象,以便在iframe中加载的外部文件可以调用nativescript函数.
我特别需要窗口对象,因为我加载的文件可以是符合LMS的符合(SCORM)的任何文件.
谢谢
编辑:我加载的文件是符合SCORM的文件.他们搜索window.API对象/ window.parent.API等,以便开始与已加载它们的容器进行通信.我不能改变那个文件.
告诉我是否需要更多细节.
我在一个 angular 5 项目上工作了 3 个月,我正在使用 Cordova 构建该项目以导出 android 和 Ios 应用程序。现在我的应用程序需要一些本机功能,但我找不到将我的 angular 5 Web 应用程序转换或包装到 Ionic 3 以使用 Ionic 的本机功能的方法。有什么方法可以轻松转换它吗?无需更改用户界面。
我打算WebP在我的电子商务网站上使用,根据Lighthouse测试可以大大提高性能。但是问题是。我们仍然有使用iOS且不支持WebP格式的用户。我需要有关传递图像的正确方式以及如何让用户以JPG下载图像的更多信息。
在我的服务器上。我有两种格式供后备使用。
我正在开发本机应用程序,但我有一台Windows PC.是否有在Windows上构建IOS应用程序的实际方法?我可以在Windows上运行ios模拟器吗?我研究过,但找不到实际的方法.
我尝试在Virtual Box上安装MacOS Sierra,但它一直在重启.
我需要两者来构建它吗?
谢谢回复!
错误
预期有2个参数,但得到1.ts(2554)core.d.ts(8064,47):未提供'opts'的参数。
代码来自NativeScript市场
https://play.nativescript.org/?template=play-ng&id=Hqp5UQ&v=3073
我已经逐字逐句地携带了代码,并且在导出类中遇到了错误
@ViewChild("password") password: ElementRef;
@ViewChild("confirmPassword") confirmPassword: ElementRef;
Run Code Online (Sandbox Code Playgroud)
有谁知道如何解决这个问题?
import { Component, ElementRef, ViewChild } from "@angular/core";
import { alert, prompt } from "tns-core-modules/ui/dialogs";
import { Page } from "tns-core-modules/ui/page";
import { RouterExtensions } from "nativescript-angular/router";
import { User } from "../shared/user.model";
import { UserService } from "../shared/user.service";
@Component({
selector: "app-login",
moduleId: module.id,
templateUrl: "./login.component.html",
styleUrls: ["./login.component.css"]
})
export class LoginComponent {
isLoggingIn = true;
user: User;
processing = false;
@ViewChild("password") password: ElementRef;
@ViewChild("confirmPassword") confirmPassword: ElementRef;
constructor(private …Run Code Online (Sandbox Code Playgroud) nativescript ×3
android ×1
angular ×1
cordova ×1
css ×1
html ×1
iframe ×1
ios ×1
javascript ×1
php ×1
react-native ×1
typescript ×1
webp ×1
wrapper ×1