当我尝试luxon在我的vuejs2项目中使用时,我遇到了这个错误。
Uncaught TypeError: Cannot read property 'local' of undefined
Run Code Online (Sandbox Code Playgroud)
我使用 npm 安装了 lib,并导入到我的组件中:
import DateTime from 'luxon'
const exmpl = DateTime.local()
Run Code Online (Sandbox Code Playgroud)
你们能告诉我我做错了什么,或者甚至提出另一个可以轻松与 vuejs 一起使用的时间操纵库。