require.js AMD模块的写法

加载touch.js

require([‘touch’], function (touch) {
touch.on(‘#main’, ‘swiperight’, function(ev){
alert(“aa”);
});
});