android phonegap插件开发方法 plugin,vue数据双向绑定

本文介绍了在Android PhoneGap环境中开发插件的方法,涉及到配置module.exports和metadata,以及如何编写javascript接口。同时,文章提及了Vue数据双向绑定在移动端开发中的应用。文中提供了一个intent.js插件的示例,并展示了JavaScript中的调用方式。
摘要由CSDN通过智能技术生成

“id”: “org.apache.cordova.vibration.notification”,

“merges”: [

“navigator.notification”

]

},

{

“file”: “plugins/intent.js”,

“id”: “org.apache.cordova.intent”,

“merges”: [

“navigator.intent”

]

},

];

module.exports.metadata =

// TOP OF METADATA

{

“org.apache.cordova.camera”: “0.2.7”,

“org.apache.cordova.dialogs”: “0.2.6”,

“org.apache.cordova.vibration”: “0.3.7”,

“org.apache.cordova.intent” :“0.0.1”,

}

// BOTTOM OF METADATA

});

我之前配置了camera  ,dialog , vibration   ,大家可以参考

现在来分解  ,这里要配置2个地方

module.exports= [{}];

module.exports.metadata = { }

在module.exports 的花括号里面配置

{

“file”: “plugins/intent.js”,

“id”: “org.apache.cordova.intent”,

“merges”: [

“navigator.intent”

]

},

file 代表  ja

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值