vhs tape:tape用于测试前端组件的磁带扩展 源码
录像带 用于测试前端组件的扩展。 用法 编写测试 const vhs = require ( 'vhs-tape' ) const MorphComponent = require ( 'hui/morph' ) const html = require ( 'hui/html' ) class Example extends MorphComponent { constructor ( loadMsg ) { super ( ) this . _loadMsg = loadMsg this . _msg = 'Hello, not mounted yet' this . _count = 0 this . onclick = this . onclick . bind ( this ) } createElement ( ) {
用户评论