ext之删除子节点
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Ext JS in Action Chapter 02</title> <link rel="stylesheet" type="text/css" href="./ext3/resources/css/ext-all.css" /> <style type="text/css"> .myDiv { border: 1px solid #AAAAAA; width:200px; height : 35px; cursor: pointer; padding: 2px 2px 2px 2px; } </style> <script type="text/javascript" src="./ext3/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="./ext3/ext-all-debug.js"></script> <script type="text/javascript"> Ext.BLANK_IMAGE_URL = './ext3/resources/images/default/s.gif'; </script> <script type="text/javascript" src="./helloElement2.js"></script> </head> <body> <div id='div1' class="myDiv"> <div id='child1'>Child 1</div> <div class='child2'>Child 2</div> <div class='child3'>Child 3</div> <div id='child4' class='sameClass'> <div id='nestedChild1' class='sameClass'>Nest Child 1</div> </div> <div>Child 5</div> </div> </body> </html>
Ext.onReady(function() { var myDiv1 = Ext.get('div1'); myDiv1.setSize(350, 350, {duration: 1, easing:'bounceOut'}); var firstChild = myDiv1.down('div:first-child'); firstChild.remove(); });
相关推荐
InJavaWeTrust 2020-05-15
Chydar 2012-09-20
natejeams 2020-01-15
zcpHappy 2014-01-11
pythonclass 2019-11-07
JF0 2019-11-03
ElementW 2015-02-15
干货集合 2014-05-14
kaiya0 2012-06-13
cscscssjsp 2012-03-05
drinow 2019-07-12
coderMozart 2019-06-30
t0ckh 2012-11-11
中等偏下 2017-02-22
nicepainkiller 2016-07-26
xiaoren 2016-02-10
云帆大数据 2016-01-11