• This repository has been archived on 16/Jul/2020
  • Stars
    star
    156
  • Rank 239,589 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JSBridge layer for hybrid framework.

hybrid-js

JSBridge layer for hybrid framework.

基于Hybrid webapp架构的JSBridge层

重要说明

Hybrid框架分为两部分,本项目是JSBridge部分个人抽离公司业务之后拿出来的,另一部分是Native开发的H5容器。

很多朋友问到是否有客户端(即H5容器)的开源实现,这部分目前还在公司内部进行调试,暂不开源,而且因公司业务的关系只实现Android部分。

有需要的可以按照api设计指南来自己实现容器部分。

文档

本地开发命令

预览示例:

$ npm run start-dev

编译项目

$ npm run build

引用

注意:当且仅当已经实现了H5容器的前提下才能应用本项目js!

  • ES6方式:
import HybridJS from './dist/hybrid.js'
  • (CommonJS)方式:
var HybridJS = require('./dist/hybrid.js');
  • AMD(RequireJS)方式:
require(['./dist/hybrid.js'], function(HybridJS) {})
  • script标签引用:
<script src="./dist/hybrid.js"></script>
<script>
    console.log(window.HybridJS)
</script>

License

MIT.

More Repositories

1

chemdemo.github.io

dmyang blog
HTML
1,006
star
2

webpack-seed

Frontend engineering solution based on webpack and gulp.
JavaScript
618
star
3

wechat-helper

查看被删的微信好友 Node.js版
JavaScript
115
star
4

node-stepify

stepify is a workflow engine for Node.js that customize asynchronous tasks by chaining methods together in an easy to understand way.
JavaScript
89
star
5

promiseA

A simple Promises/A+ implementation.
JavaScript
74
star
6

wts-monit

Web terminal shell monit build with Node.js.
JavaScript
41
star
7

nodeblog

A lightweight blog system built with nodejs.
JavaScript
20
star
8

wts-node

Node.js client for WTS system.
JavaScript
10
star
9

everyauth-cn

Social oauth connect for Chinese SNS sites.
JavaScript
9
star
10

storm-drpc-node

Apache storm DRPC client for Node.js.
JavaScript
8
star
11

alloy-report

Frontend report SDK for AlloyTeam only.
5
star
12

IceWorld

An ice-color-style color schema for Sublime Text 2.
5
star
13

deskshell

Remote web desktop built with Node.js and socket.io
JavaScript
4
star
14

jkpack

自动触发jenkins系统打包并搜集生成到artifactory的包,告别手工操作。
JavaScript
3
star
15

easy-api

Lightweight Node.js server with mock & proxy service built in.
JavaScript
2
star
16

luobo

A simple game demo.
JavaScript
2
star
17

tabsTracer

Tracing all links you have opened, and store them in localStorage.
JavaScript
2
star
18

mdmaker

A lightweight markdown editor.
JavaScript
2
star
19

grunt-jst-prepend

Prepend some variables to the generated template files by grunt-contrib-jst module.
JavaScript
1
star
20

babymonkey

A HTTP capture package tool build with Node.js.
JavaScript
1
star