Front-end/node/note使用记录.lexical

1 line
3.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"editorState":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"只有在保存的时候获取","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Node.js has two module systems: CommonJS modules and ","type":"text","version":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"ECMAScript modules","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"link","version":1,"rel":null,"target":null,"title":null,"url":"https://nodejs.cn/api/modules.html#"},{"detail":0,"format":0,"mode":"normal","style":"","text":"。","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Calling ","type":"text","version":1},{"detail":0,"format":16,"mode":"normal","style":"","text":"require()","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" always use the CommonJS module loader. Calling ","type":"text","version":1},{"detail":0,"format":16,"mode":"normal","style":"","text":"import()","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" always use the ECMAScript module loader.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"ECMAScript modules are ","type":"text","version":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"the official standard format","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"link","version":1,"rel":null,"target":null,"title":null,"url":"https://nodejs.cn/api/esm.html#"},{"detail":0,"format":0,"mode":"normal","style":"","text":" to package JavaScript code for reuse. Modules are defined using a variety of ","type":"text","version":1},{"children":[{"detail":0,"format":16,"mode":"normal","style":"","text":"import","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"link","version":1,"rel":null,"target":null,"title":null,"url":"https://nodejs.cn/api/esm.html#"},{"detail":0,"format":0,"mode":"normal","style":"","text":" and ","type":"text","version":1},{"children":[{"detail":0,"format":16,"mode":"normal","style":"","text":"export","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"link","version":1,"rel":null,"target":null,"title":null,"url":"https://nodejs.cn/api/esm.html#"},{"detail":0,"format":0,"mode":"normal","style":"","text":" statements.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":"ltr","format":"","indent":0,"type":"list","version":1,"listType":"number","start":1,"tag":"ol"},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}}