APPCANIDE
sea.js
config.js配置别名和路径seajs.config({ alias: { 'control': './../../js/appcan.control.js', 'main' : './main.js', 'uexLocation':'./../../plugin/uexLocation.js', }, paths:{ 'root' : './../../../', 'module' : './../module2/' }, map : []});
html页面先添加JS文件 然后,将页面脚本也做一个模块化seajs.use('./public/js/config') define(function(require){ require('control')(appcan) appcan.ready(function() { var titHeight = $('#header').offset().height; appcan.frame.open('content', 'index_content.html', 0, titHeight); window.onorientationchange = window.onresize = function() { appcan.frame.resize('content', 0, titHeight); } }); });注:主,子页面都要做此操作