# window.bridge介绍

npm install smarthome-h5-bridge

以vue为例,在入口文件中即main.js中引入即可

# 调用示例

    -- main.js

 import 'smarthome-h5-bridge';
 

  在需要的地方
 window.bridge.getAppInfo()