Package Exports
- @moomfe/hu
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@moomfe/hu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Hu
Hu 是一个基于 Web Components 和 Proxy 的 MVVM 框架, 适合公用组件开发
Hu 使用了和 Vue 相似的 API, 大大减少了学习成本
浏览器支持
Chrome | Firefox | Safari | Edge | IE | UC | |
---|---|---|---|---|---|---|
Use Polyfill | 49+ | 47+ | 10+ | 14+ | × | 11.8+ |
No Polyfill | 54+ | 63+ | 10.1+ | 75+ | × | 11.8+ |
在目前支持的这些浏览器下, 已经支持大部分的 ES5 / ES6 等特性及方法了,
在项目中就可以忽略对这些特性的 babel 转码和 polyfill 以达到更好的性能, 特在此罗列出来 ( 包括但不限于 ):
- 箭头函数表达式 ( Arrow Functions )
- 函数默认参数 ( Default parameters )
- 剩余参数 ( Rest Parameters )
- 模板字面量 ( Template literals ) or 模板字符串 ( Template Strings )
- 计算属性名 ( Computed property names ) / 简短属性名 ( Shorthand property names ) / 简短方法名 ( Shorthand method names )
- 展开语法 ( Spread syntax )
- 解构赋值 ( Destructuring assignment )
- 类 ( Classes )
- 迭代循环 ( for...of )
- 块级作用域 - 常量 ( Const ) / 块级作用域 - 变量 ( Let )