Live2D 看板娘 / Demo
摘要: 1、对于简单应用 store 模式 集中式状态管理 action 统一管理 state 的更新,更好地记录 state 的变化和调试 var store = { debug: true, state: { message: 'Hello!' }, setMessageAction (newValue 阅读全文
posted @ 2022-03-10 16:53 小叶_Jiang 阅读(230) 评论(0) 推荐(0)
摘要: 1、commonJS 原理 浏览器不兼容CommonJS的根本原因,在于缺少四个Node.js环境的变量。 module exports require global 只要能够提供这四个变量,浏览器就能加载 CommonJS 模块。 下面是一个简单的示例。 var module = { export 阅读全文
posted @ 2022-03-10 15:28 小叶_Jiang 阅读(124) 评论(0) 推荐(0)