表现为:“鼠标能动,任务管理器调不出来,但按所有的快捷键,包括 CTRL+ALT+ESC,CTRL+ALT+DEL 都没有反映,只有按 ATL+TAB 有反应,但无法激活任何窗口”
才发现有不少网友遇到这个问题:
http://bbs.2ccc.com/topic.asp?topicid=315641
呵呵,其实我也遇到这个问题很长时间了,公司同事甚至专门写一个后台程序出问题时通过某些特定可用的快捷键杀 Delphi,之后操作系统可以缓过来。否则只能 reset 重启电脑。
奇怪的是在我的 windows 7 下一直没有这个问题,而在 windows xp 下出现的改了非常大,基本上调试两三次必死。于是乎这也成为我彻底抛弃 xp 使用 windows 7 的理由之一。
最近在家里的 xp 调程序,又遇到这个问题了,郁闷ing。
经过若干次“被重启”后,决心端掉这个问题!
于是乎,经过最近一周多断断续续不懈的努力,期间不下 3 次的重装系统和 nnn 次的重启,终于排查、发现问题的根源了:
原来是 xp 下安装了 360safe 后出现的“兼容”问题?
具体地说,是 360sa ......
JScript 运行时错误
JScript 运行时错误是指当 JScript 脚本试图执行一个系统不能运行的动作时导致的错误。当正在运行脚本、计算变量表达式、或者正在动态分配内存时出现 JScript 运行时错误时。
错误号 描述
5029 数组长度必须为一有限正整数
5030 必须赋给数组长度一个有限正数
5028 需要 Array 或 arguments 对象
5010 需要 Boolean
5003 不能给函数返回值赋值
5000 不能给 'this' 赋值
5006 需要 Date 对象
5015 需要 Enumerator 对象
5022 异常抛出,但无法抓住
5020 正则表达式中缺少“)”
5019 正则表达式中缺少“]”
5023 函数没有合法的 Prototype 对象
5002 需要 Function 对象
5008 非法赋值
5021 字符集范围无效
5014 需要 JScript 对象
5001 需要 Number 类型
5007 需要 Object 类型
5012 需要对象的成员
5016 需要正则表达式对象
5005 需要 String
5017 正则表达式语法错误
5026 小数部分的位数越界
5027 精度越界
5025 待解码的 URI 编码非法
5024 待解码的 URI 包含有非法字符
5009 未定义标识符
5018 未预期的限定符
5013 需要 VBArray
JScript 语法错误
JS ......
技术的js的replace默认只替换第一个,这不知道哪个设计的,如果我是 A / B / C / D 的字符串要变成 A-B-C-D 就要在被转内容使用后加/g,因为又带了/,加上各空格,在replace 的第一个参数应该是
var rut = /\/ /g;
然后
replace(rut, "-"); ......
第一种:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
a
{
display:block;
height:22px;
width:90px;
font-size:15px;
padding-top:5px;
text-decoration:none;
background-color:#CCCCCC;
border-bottom:2px red solid;
}
a:hover
{
background-color:#0000FF;
color:#FFFFFF;
}
.menu .submenu
{
float:left;
margin:0px;
}
.menu .submenu ul
{
list-style-type:none;
margin:0px;
}
.menu .submenu ul li
{
display:none;
}
</style>
<script language="javascript">
function mydeel(obj,isshow)
{
var objs = obj.getElementsByTagName("li");
for(var i=0;i<objs.length;i++)
......
//Textarea maxlength
//flag:text框名字,num:限制的字节数
function maxLen(flag,num){
if(document.getElementById('lastMessage').value=="0" || document.getElementById('lastMessage').value==flag){
var i=document.getElementById(flag).value.replace(/[\u0800-\uffff]/g,"\u0061\u0061\u0061").length; //byte length
if(i>num){
switch(flag){
case ("textareaName"): document.getElementById('lastMessage').value="textareaName"; break;
default: &n ......
function getCookies(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return '';
}
function setCookie(name, value, expires,
function getCookies(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return '';
}
function setCookie(name, value, expires, path, domain, secure)
{
var liveDate = new Date();
expires = liveDate.setTime(liveDate.getTime() + expires*60*1000);//毫秒
//expires = new Date((new Date()).getTime() + expires * 60000);//按分钟
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
以下网上找的资料:
—————————————&m ......