-
ExtJs怎么才能点击一个按钮后,重新打开一个浏览器窗口?5
如题。希望大家帮帮我。 JavaScript Ajax ExtJS 2012年6月07日 08:52 ygyz03
2
0 0 4- 添加评论
- 关注(0)
2个答案按时间排序按投票排序
-
0
0
-
采纳的答案
给你实装了代码
Html代码
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Button</title>
- <link rel="stylesheet" type="text/css" href="http://extjs.cachefly/ext-4.0.7-commercial/resources/css/ext-all.css"/>
- <script type="text/javascript" src="http://extjs.cachefly/ext-4.0.7-commercial/ext-all-debug.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- Ext.create('Ext.Button', {
- text: 'Click me to open url',
- renderTo: Ext.getBody(),
- handler: function() {
- window.open('http://www.baidu', 'mywindow1', 'width=400, height=300, menubar=no, toolbar=no, scrollbars=yes');
- }
- });
- </script>
- </body>
- </html>
180
0 0 18- 添加评论
-
1
0
-
这个可以直接用javascript的原生方法的啊?window.open(url);
-
发布者:admin,转转请注明出处:http://www.yc00.com/web/1742569312a4460194.html
评论列表(0条)