Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

各种报错啊, 怎么搞... #1

Open
1024042400 opened this issue Sep 10, 2020 · 0 comments
Open

各种报错啊, 怎么搞... #1

1024042400 opened this issue Sep 10, 2020 · 0 comments

Comments

@1024042400
Copy link

在App.ts里 下面代码都会有报错

import AppLog from './log/AppLog';
console.log(AppLog.getInstance());
(window["bb"] as any).log = AppLog.getInstance().log.bind(AppLog.getInstance());
(window["bb"] as any).log2 = AppLog.getInstance().log2.bind(AppLog.getInstance());
(window["bb"] as any).info = AppLog.getInstance().info.bind(AppLog.getInstance());
(window["bb"] as any).info2 = AppLog.getInstance().info2.bind(AppLog.getInstance());
(window["bb"] as any).info3 = AppLog.getInstance().info3.bind(AppLog.getInstance());
(window["bb"] as any).warn = AppLog.getInstance().warn.bind(AppLog.getInstance());
(window["bb"] as any).error = AppLog.getInstance().error.bind(AppLog.getInstance());

import ViewCtrl from './view/base/ViewCtrl'
(window["bb"] as any).ViewCtrl = ViewCtrl;

import UIBind from './loader/UIBind'
(window["bb"] as any).UIBind = UIBind.getInstance();

import UILoader from './loader/UILoader';
(window["bb"] as any).UILoader = UILoader.getInstance();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant