All Projects → lhb11 → native-js-interactive-encapsulation

lhb11 / native-js-interactive-encapsulation

Licence: other
主要用于vue和原生的交互

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to native-js-interactive-encapsulation

starkgate-frontend
Bridge interface allows users to transfer ERC20 tokens from Ethereum to StarkNet and vice versa.
Stars: ✭ 75 (+316.67%)
Mutual labels:  bridge
MetaTrader4-Bridge
Communication layer between MetaTrader 4 and your project.
Stars: ✭ 66 (+266.67%)
Mutual labels:  bridge
fuso
一款体积小, 快速, 稳定, 高效, 轻量的内网穿透, 端口转发工具 支持多连接,级联代理,传输加密 (A small volume, fast, stable, efficient, and lightweight intranet penetration, port forwarding tool supports multiple connections, cascading proxy, and transmission encryption)
Stars: ✭ 1,132 (+6188.89%)
Mutual labels:  bridge
laravel-stripe
No description or website provided.
Stars: ✭ 14 (-22.22%)
Mutual labels:  bridge
AirConnect-Synology
Updated AirConnect packages for Synology NAS and Synology Router
Stars: ✭ 200 (+1011.11%)
Mutual labels:  bridge
tokenbridge
A bidirectional Ethereum / RSK Token Bridge implementation.
Stars: ✭ 85 (+372.22%)
Mutual labels:  bridge
Matrix-EmailBridge
A bridge written in Golang to receive and write emails in matrix
Stars: ✭ 101 (+461.11%)
Mutual labels:  bridge
react-native-android-wear-demo
Showcase of a two-way communication between React Native and Android Wear apps.
Stars: ✭ 93 (+416.67%)
Mutual labels:  bridge
whatsapp-telegram-bridge
A simple bridge to receive whatsapp chats on telegram.
Stars: ✭ 22 (+22.22%)
Mutual labels:  bridge
twitter
A Matrix-Twitter DM puppeting bridge
Stars: ✭ 48 (+166.67%)
Mutual labels:  bridge
telegram
A Matrix-Telegram hybrid puppeting/relaybot bridge
Stars: ✭ 914 (+4977.78%)
Mutual labels:  bridge
NoPMsBot
https://telegram.dog/ShriMADhaBot
Stars: ✭ 127 (+605.56%)
Mutual labels:  bridge
Slack-IRC-Gateway
Bridge Slack rooms to IRC channels
Stars: ✭ 33 (+83.33%)
Mutual labels:  bridge
minecraft-discord-bridge
A minecraft <-> discord bridge with no server-side requirements
Stars: ✭ 30 (+66.67%)
Mutual labels:  bridge
matrix-puppet-slack
puppet style slack bridge for matrix
Stars: ✭ 46 (+155.56%)
Mutual labels:  bridge
GitBridge
Access resources and information from the git repository containing your project.
Stars: ✭ 14 (-22.22%)
Mutual labels:  bridge
knx-go
KNX clients and protocol implementation in Go
Stars: ✭ 62 (+244.44%)
Mutual labels:  bridge
skype-to-telegram
Skype to Telegram bot, for receive your message from skype in telegram
Stars: ✭ 14 (-22.22%)
Mutual labels:  bridge
rnim
A bridge between R and Nim
Stars: ✭ 22 (+22.22%)
Mutual labels:  bridge
hashport-validator
Official repository containing the source code of the Hashport validators
Stars: ✭ 19 (+5.56%)
Mutual labels:  bridge

前言

vue和原生(ios和android)的交互封装

主要在项目中使用到vue和原生的交互,原生交互的方法必须挂载到window上,引入vue的作用域,挂载到vue的方法原生无法访问到,所以写一个app.js来完成原生和js的交互

目前主要使用的是监听安卓中的返回键事件

监听html中和native的webview的事件交互

说明

喜欢的别忘记了可以star一下的噢!

开发环境 win10 Chrome 58.0.3029.110  nodejs 6.2.0

技术栈

vue + vue-router + webpack

效果图

原生调用组件中的事件演示

回掉原生事件演示

项目运行

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].