惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Engineering at Meta
Engineering at Meta
T
Tenable Blog
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
P
Privacy & Cybersecurity Law Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
N
News and Events Feed by Topic
Google DeepMind News
Google DeepMind News
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
H
Hacker News: Front Page
I
InfoQ
L
LangChain Blog
Security Latest
Security Latest
The Cloudflare Blog
Forbes - Security
Forbes - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
TaoSecurity Blog
TaoSecurity Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
Scott Helme
Scott Helme
爱范儿
爱范儿
A
Arctic Wolf
F
Full Disclosure
酷 壳 – CoolShell
酷 壳 – CoolShell
Schneier on Security
Schneier on Security
N
News and Events Feed by Topic
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LINUX DO - 最新话题
V2EX - 技术
V2EX - 技术
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - Amwpfiqvy

如何查看执行计划 SQL Server 堆表与栈表的对比(大表) SQL Server中CURD语句的锁流程分析 树表分级统计 SQL:查询购买了所有指定商品的人 在SQL Server中使用正则表达式 查看SQL Server性能时常用的性能计数器 SQL Server中行列转换 Pivot UnPivot Apq本地工具集 Apq.aspx 第一个:_Config.js JScript.Encode.js - Amwpfiqvy - 博客园 Apq.Threading.js - Amwpfiqvy - 博客园 Apq.Text.js Apq.js - Amwpfiqvy - 博客园 prototype.js Apq.aspx - Amwpfiqvy - 博客园 查看数据库所有用户表及其列信息 利用JScript的Literal Syntax特性用字符串表示对象
Script/_Config.js
Amwpfiqvy · 2006-06-14 · via 博客园 - Amwpfiqvy

/* 系统设置
 *
 * 每个项目均应单独建立该文件
 *
 * 2006-04-14 黄宗银
 * */

/// Apq 框架设置 ------------------------------------------------------------------------------------------------------------------------------
window.Apq$Config = {
 // 调试
 DEBUG: false,

 // Apq 脚本库根目录
 Apq: "/Apq(分布版)/",

 // 起始页面地址
 Home: "/Apq/User/"
};
/// 以下一般不用修改 --------------------------------------------------------------------------------------------------------------------------
/// 检测 MsXml 6.0
function MsXml_Test()
{
 try
 {
  window.Apq$jsxh = new ActiveXObject( "Msxml2.XmlHttp.6.0" );
 }
 catch(e)
 {
  if( window.confirm( '系统需要启用 ActiveX 运行权限,请检查安全设置.\n\n' +
   '同时还需要安装Microsoft XML 分析器 MSXML 6.0\n' +
   '如果你未安装,请点击"确定"打开下载\n' +
   '注意:安装后可能需要重新打开IE' ) )
  {
   window.open( "http://download.microsoft.com/download/2/e/0/2e01308a-e17f-4bf9-bf48-161356cf9c81/msxml6.msi" );
  }
  return false;
 }
 return true;
}

/// eval 扩展 ---------------------------------------------------------------------------------------------------------------------------------
/// 用无参匿名函数的形式,以指定上下文运行代码
window.anonymous = function( str, o ){
 var fn = new Function( str );
 fn.call( o );
};

/// 在指定窗口 添加/运行 脚本
window.__eval = function( win, str ){
 if( win.document.readyState == "complete" || Apq$Config.DEBUG )
 {
  // 该方式 ViewPage 插件看不到源代码,但调试可见
  win.eval( str );
 }
 else
 {
  // 该方式调试时看不到源代码,一定程度上实现了程序逻辑的隐藏
  win.document.writeln( '<script type="text/jscript">' );
  win.document.writeln( str );
  win.document.writeln( '<\/script>');
 }
};

// 初始化脚本容器
window.Apq$jsContainer = {};

/// 系统初始化,需且仅需运行一次(系统已自动处理)
window.Apq_Init = function()
{
 // 保证只运行一次
 if( window.Apq )
 {
  return;
 }

 window.Apq$ = window.parent.Apq$ || window; // 保存框架窗口引用
 
 // 表示以本窗口为顶级引入 Apq 框架
 if( window.Apq$ == window )
 {
  window.Apq = {
   "__key": "namespace",
   "__type": "Apq"
  };

  // 将最基本的脚本文件( prototype, Apq )导出到指定窗口
  Apq.Export = function( win, ns ){
   if( ns != "prototype" && ns != "Apq" )
   {
    return;
   }
   if( Apq$jsContainer[ns] )
   {
    __eval( win, Apq$jsContainer[ns] );
    return;
   }
   
   if( !window.Apq$jsxh && !MsXml_Test() )
   {
    return;
   }
   Apq$jsxh.open( "GET", Apq$Config.Apq + ns + ".js", false );
   Apq$jsxh.send();
   if( Apq$jsxh.status == 200 )
   {
    Apq$jsContainer[ns] = Apq$jsxh.responseText;
    __eval( win, Apq$jsContainer[ns] );
    return;
   }
   throw new Error( Apq$jsxh.status, Apq$jsxh.statusText );
  };
 }

 // 非 Apq.aspx 页面,则从主框架页导入 Apq 框架
 if( !window.Apq$main )
 {
  Apq$.Apq.Export( window, "prototype" );
  Apq$.Apq.Export( window, "Apq" );
 }
 
 // 调试模式时提示所有运行异常
 if( Apq$Config.DEBUG )
 {
  window.onerror = function(sMsg,sUrl,sLine){
   alert( "\t运行时错误\n行数:" + sLine + "\n信息:" + sMsg + "\n网址:" + sUrl );
  };
 }
};

// 非 Apq.aspx 页面时立即初始化
if( !window.Apq$main )
{
 window.Apq_Init();
}