第二步: 创建index.html和app.js,内容如下:
app.js
Ext.application({ name : 'EnterSellSaves', launch : function() { Ext.create('Ext.Panel', { renderTo : Ext.getBody(), width : 200, height : 150, bodyPadding : 5, title : 'Hello World', html : 'Hello World...' }); }});index.html
欢迎来到 Ext JS!
在登陆界面,登陆按钮增加一个函数
onclick="login()"
函数实现如下:
function login(){ window.opener = null; window.open('','_self'); window.close(); window.open('index.html','11','location=0,resizable=no,fullscreen=true,titlebar=no,status=no,toolbar=no,menubar=no,left=0,top=0'); }
这样就能打开到index,html
对于逻辑判断,就可以更改为jsp啊ASP啊。
这个方法,可以使用sencha cmd生成应用程序框架,也可以使用自己手动引入js文件。感觉还不错。
最终效果---登录页面
登录跳转之后
页面跳转之后,URL也完成了。
查看更多关于第二十五节利用window.open()函数实现ExtJS5的登陆页面跳转_html/css_WEB的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did105971