js 语法理解工具babel

网址:

https://babeljs.io/repl

使用:

本来是不理解该语法的:

const { Component, useState, } = owl;

但是当勾选es2015后就很容易理解了:

var _owl = owl,
    Component = _owl.Component,
    useState = _owl.useState;

posted @ 2020-10-07 10:30  那时一个人  阅读(338)  评论(0)    收藏  举报