dingtalk-h5-remote-debug
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

dingtalk-h5-remote-debug

介绍

钉钉 H5 微应用调试工具,支持 Android、IOS、Windows、Mac,支持开发者开发阶段进行调试,支持开发者和用户进行线上调试。

调试平台地址:https://open-dev.dingtalk.com/fe/api-tools#/debug/h5

使用方法

  1. 执行 npm install dingtalk-h5-remote-debug --save
  2. 在应用入口处,引入 dingtalk-h5-remote-debug 包中的方法 initDingH5RemoteDebug 并执行。
import React, { useEffect } from "react";
import { initDingH5RemoteDebug } from "dingtalk-h5-remote-debug";

export default () => {
  useEffect(() => {
   initDingH5RemoteDebug();
  }, []);
 return (<div>your page content</div>);
};

注意

H5 调试工具引入后,只有在特定的调试状态下才会启用(在调试平台中复制调试地址并打开),不会干扰应用的线上运行,可以将调试工具的引入及初始化代码发布到线上。

Readme

Keywords

Package Sidebar

Install

npm i dingtalk-h5-remote-debug

Weekly Downloads

46

Version

0.1.3

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • zwk_ali