WebRoot/sys_js/public.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function(){
$('tbody tr:odd').addClass("trLight");
$(".select-all").click(function(){
if($(this).attr("checked")){
$(".checkBox input[type=checkbox]").each(function(){
$(this).attr("checked", true);
});
}else{
$(".checkBox input[type=checkbox]").each(function(){
$(this).attr("checked", false);
});
}
});
})
function actionDel(url) {
if(confirm("Are you sure to delete?")) {
self.location.href = encodeURI(url);
}
}
function toModify(url) {
openWin(url,'mdy',500,500,0);
}
function viewDetail(url) {
openWin(url,'detail',500,500,0);
}
function actionDo(url) {
self.location.href = url;
}
/*
* 打开新窗口 f:链接地址 n:窗口的名称 w:窗口的宽度 h:窗口的高度 s:窗口是否有滚动条 1有 0没有
*/
function openWin(f,n,w,h,s) {
var newf = encodeURI(f);
sb = s == "1" ? "1" : "0";
l = (screen.width - w) / 2;
t = (screen.height - h) / 2;
sFeatures = "left=" + l + ",top=" + t + ",height=" + h + ",width=" + w +
",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
openwin = window.open(newf,n,sFeatures);
if(!openwin.opener) {
openwin.opener = self;
openwin.focus();
return openwin;
}
}
/*
* open delete dialog
*/
function openDeleteDialog(url,confirmString){
var c = confirmString;
if(c == null || c == '') {
c = "Are you sure to delete?";
}
if(confirm(c)){
后面还有 280 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。