This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G.ui.tips.suc(data.msg); | |
G.ui.tips.err(data.msg); | |
G.ui.tips.confirm_flag('您确定吗?',function(){}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($("#readme").attr("checked") != "checked") { | |
alert("hello"); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history.go(0) | |
location.reload() | |
location=location | |
location.assign(location) | |
document.execCommand('Refresh') | |
window.navigate(location) | |
location.replace(location) | |
document.URL=location.href |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(confirm("确定要清空数据吗?")) | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Mobile/11D257 MicroMessenger/5.4 NetType/WIFI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oracle没有自增字段这样的功能,但是通过触发器(trigger)和序列(sequence)可以实现。 | |
先建一个测试表了: | |
create table userlogin | |
( | |
id number(6) not null, | |
name varchar2(30) not null primary key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="role" id="role"> | |
<option value="">请选择角色</option> | |
<?php foreach ($roles as $role):?> | |
<option value="<?php echo $role->ID ?>" <?php if(isset($uinfo)){echo ($uinfo['ID']==$role->ID)?'selected=selected':'';} ?> ><?php echo $role->NAME ?></option> | |
<?php endforeach;?> | |
</select><span class="maroon">*</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
win7里面有自带的关机程序,在Windows\System32\Shutdown.exe。 | |
可以直接打开这个可执行应用程序,也可以选择“开始→运行”,比如你的电脑要在22:00关机,输入“at 22:00 Shutdown -s”, 到了22点电脑就会出现“系统关机”对话框,默认有30秒钟的倒计时并提示你保存工 作。如果你想以倒计时的方式关机,可以输入“Shutdown.exe -s -t 3600”,这里表示60 分钟后自动关机,“3600”代表60分钟。 | |
设置好自动关机后,如果想取消的话,可以在运行中输入“shutdown -a”。另外输入 | |
“shutdown -i”,则可以打开设置自动关机对话框,对自动关机进行设置。 | |
Shutdown.exe的参数,每个都具有特定的用途,执行每一个都会产生不同的效果,比如 | |
“-s”就表示关闭本地计算机,“-a”表示取消关机操作,-f:强行关闭应用程序 | |
-m \\计算机名:控制远程计算机 | |
-i:显示图形用户界面,但必须是Shutdown的第一个选项 | |
-l:注销当前用户 | |
-r:关机并重启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
元/m<sup>2</sup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['dir'])){ //设置文件目录 | |
$basedir=$_GET['dir']; | |
}else{ | |
$basedir = '.'; | |
} | |
$auto = 1; | |
checkdir($basedir); | |
function checkdir($basedir){ | |
if ($dh = opendir($basedir)) { |
OlderNewer