
JavaScript
GITAA
这个作者很懒,什么都没留下…
展开
-
页面跳转指定位置
页面跳转指定位置 使用 scrollIntoView 官方文档https://developer.mozilla.org/zhCN/docs/Web/API/Element/scrollIntoView 1,页面节点动态添加id 2,然后利用scrollIntoView 跳转指定位置 const elementId = arr.substring(14) const element: HTMLElement | null = document.getElementById(elementId) elemen原创 2021-10-25 19:00:55 · 179 阅读 · 0 评论 -
BPMN 汉化
bpmn 汉化 方法 节点文档可以去官网搜一个比较全的,然后根据自己项目摘出来需要的 // BPMN汉化 import translations from ‘./translationsChinese’ import { bpmnType } from ‘./BpmnType’ export default function customTranslate( template: bpmnType, replacements: { [x: string]: any } ) { replacements原创 2021-10-25 18:52:07 · 1208 阅读 · 0 评论