使用2.2获得以下异常.
正在使用以前的版本.
"tns info"和所有内容都更新为2.2
JS: Error: Uncaught (in promise): EXCEPTION: Error in pages/listview/listview.html:12:2
JS: ORIGINAL EXCEPTION: TypeError: _this.cssClasses(...).set is not a function
JS: ORIGINAL STACKTRACE:
JS: TypeError: _this.cssClasses(...).set is not a function
JS: at /data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/view-util.js:254:78
JS: at Array.forEach (native)
JS: at ViewUtil.setClasses (/data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/view-util.js:254:17)
JS: at ViewUtil.setPropertyInternal (/data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/view-util.js:189:18)
JS: at ViewUtil.setProperty (/data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/view-util.js:181:18)
JS: at NativeScriptRenderer.setElementProperty (/data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/renderer.js:141:23)
JS: at NativeScriptRenderer.setElementAttribute (/data/data/org.nativescript.test1/files/app/tns_modules/nativescript-angular/renderer.js:145:21)
JS: at DebugAppView._View_ListviewPage0.createInternal (ListviewPage.template.js:58:17)
JS: at DebugAppView.AppView.create (/data/data/org.nativescript.test1/files/app/tns_modules/@angular/core/src/linker/view.js:87:21)
JS: at DebugAppView.create (/data/data/org.nativescript.test1/files/app/tns_modules/@angular/core/src/linker/view.js:299:44)
JS: ERROR CONTEXT:
JS: [object Object]
Run Code Online (Sandbox Code Playgroud) 哪个 Nativescript 模块更适合 http 请求 - http 或 fetch?
计划进行 GET 和 POST 操作 - 大多很简单,没有 cookie 和状态要求。
但我想对 XMLhttprequest 对象进行精细控制 - 例如设置超时值等。
我有这个代码
var MY_OBJ = {};
MY_OBJ.test = function(){}
Run Code Online (Sandbox Code Playgroud)
我正在使用 Vscode,但未定义属性测试。我怎么让这只是一个警告。
我可以在 NS 中强制重新启动应用程序吗?
那就是——关闭并重新启动。
谢谢
我可以在 NS 中强制重新启动应用程序吗?
那就是——关闭并重新启动。
谢谢