vghdjgh's recent timeline updates
vghdjgh

vghdjgh

V2EX member #158062, joined on 2016-02-04 14:18:50 +08:00
Per vghdjgh's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
vghdjgh's recent replies
Feb 16, 2019
Replied to a topic by Sparetire JavaScript Typescript 动态导入模块要怎么做?
ES static import 必须是确定的模块路径,ES dynamic import 还不被 nodejs 默认支持( Experimental https://nodejs.org/dist/latest-v11.x/docs/api/esm.html ),所以默认只能用 require,需要类型信息的话用 as 来标注
May 23, 2018
Replied to a topic by sneezry Node.js 有最小化 node_modules 的工具吗
subresource integrity
Jan 9, 2018
Replied to a topic by herozzm 问与答 求一款可视化 json GUI
你可能需要这样的库: https://plantain-00.github.io/schema-based-json-editor/packages/vue/demo/
不过要写点代码,包括读 json schema 文件、读初始 json 文件数据、把更新后的 json 数据写入文件。
那就遗憾了
这种情况的解决方案就是接口文档中也提供一份语言无关的 protobuf 或 json schema 文件,然后收到数据时做验证
如果用 typescript,我用 https://github.com/plantain-00/types-as-schema 通过 types 生成 json schema 或 protobuf 文件
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2413 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
♥ Do have faith in what you're doing.