【文件属性】:
文件名称:sleepwalker:示例应用程序显示了 MeteorCordova 应用程序的 insomnia 插件的用法
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-13 06:48:37
JavaScript
梦游者
示例应用程序显示了用于 Meteor/Cordova 应用程序的 insomnia 插件的用法
通过添加到您的应用程序中
meteor add cordova:nl.x-services.plugins.insomnia@https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/tarball/89374cb52b049fe4e9836e4b702591f35c875805
然后,您可以使用与此类似的代码切换睡眠模式:
Template.counter.events({
'click button': function () {
if (Session.get('insomnia')) {
Session.set('insomnia', false);
if (Meteor.isC
【文件预览】:
sleepwalker-master
----app()
--------sleepwalker.css(31B)
--------sleepwalker.js(1KB)
--------.meteor()
--------sleepwalker.html(249B)
----README.md(874B)