代码如下: $(function () { pageJs.urls = [ ‘/’, ‘Index’, ]; pageJs.run(); }); //the functions include html elements. Ajax function also can be put here. var Common = { init: function () { alert(‘Common’); } }; //url–pages var Index = { init: function () { Common.init(); this.test(); this.test2();