极光推送的启动在ts文件里怎么写?

来源:

你是我心中的小幸福_yxt

2016-09-17

按要求我是

window.plugins.jPushPlugin.init();

这样写的,但是报错

✗ TypeScript error: app/app.ts(39,14): Error TS2339: Property 'plugins' does not exist on type 'Window'.

请老师给说明一下该怎么写。

写回答

1回答

Parry

2016-09-18

请看第八章的 ts 中引用 js。

0
4
你是我心中的小幸福_yxt
报错的位置就在JPushPlugin.ts文件加export的位置。
2016-09-18
共4条回复

Ionic飞速上手的跨平台App开发

以HTML5移动App开发框架Ionic,开发不受平台限制的App

1314 学习 · 640 问题

查看课程