module is a set of method operation, you can
require it and call method in it. During the initialization of WeexSDK, some internal modules has been registered to the engine.
native module process of module registration#
stream module: it provide a method called
fetch which can invoke a network request to specified server, you can get more details here.
var stream = weex.requireModule('stream');
differnce between module method and component method#
For module method you can call after require the target module and it doesn’t rely on any component instance. For component method you must get the ref for component first and then call the component method