我们修改上例,添加一个droppable区域,当有ui组件拖放到该区域时,显示“dropped”。
[php]
01.beginWidget('zii.widgets.jui.CJuiDroppable', array(
02. 'options'=>array(
03. 'drop'=>'js:function(event,ui){$(this).html("Dropped!")}',
04. ),
05. 'htmlOptions'=>array(
06. 'style'=>'width: 300px; height: 300px; padding:
07. 5px; border: 1px solid #e3e3e3; background: #f7f7f7',
08. ),
09. ));
10.echo 'Drop here';
11.
12.$this->endWidget();
13.?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号