- <html>
- <head>
- <title>Ext hide text in the web page</title>
- <meta http-equiv="Content-Type" content="text/html">
- <link >
- <script type="text/javascript" src1="ext/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src1="ext/ext-all-debug.js"></script>
- <script type="text/javascript">
- Ext.onReady(function(){
- var myid1 = Ext.get('myid1');
- alert(myid1.dom.innerHTML);
- Ext.fly('myid2');
- myid1.hide();
- });
- </script>
- </head>
- <body>
- <h1 id="myid1">The text to hide</h1>
- <h2 id="myid2">The text to show</h2>
- </body>
- </html>
- //该片段来自于http://www.codesnippet.cn/detail/261220138255.html
来源: http://www.codesnippet.cn/detail/261220138255.html