加载中...

1.6 Built-in Modules


How to use

You can use a simply way like require('@weex-module/name') to access the apis of module. e.g.

  1. var dom = require('@weex-module/dom');
  2. dom.scrollToElement(this.$el('someIdForElement'), {
  3. offset: 0
  4. });

还没有评论.