<html>
<head>
<title> </title>
<script>
var obj = {
var var1: 5;
}
alert(obj.var1);
</script>
</head>
<body>
</body>
</html>
这段简单代码为什么不能正常显示呢?不能正常弹出对话框显示 ......
HTML code:
<script language="javascript" type="text/javascript">
function Check()
{
var a=document.getElementById("txtIsAwardContract" );
if(a.value=="是")
document.getElementById('txtRevisionFee').di ......
function SetPopUpWin(){
PUP = window.open('','PUP','width=300,height=160,toolbar=0,directories=0,status=1,menu=0,scrollbars=no,resizable=no,copyhistory=no,location=0');
}
PUP.document.write();
这个里面的pup是什么啊,能不能详细说明一下!
pub表示你用window.o ......
单击按钮使文字变大,代码如下,结果报错
HTML code:
<html>
<head>
<title></title>
<script language="javascript">
function chan()
{
var mspan=document.getElementById("sp");
mspan.style.font-size="50px";
......
能给个例子不?
<html>
<head>
<script>
function test()
{
alert("what the hell...")
}
</scirpt>
</head>
<body>
<a onclick="test()">click </a>
</body>
</html>
《script src=&q ......
搜索相关资料中.....
有高人知道不?
使用正则表达式替换掉空格、换行符、回车符等空白字符和注释。
引用
使用正则表达式替换掉空格、换行符、回车符等空白字符和注释。
这样压缩的话估计节约的空间不会很大吧?
引用
引用 2 楼 ltnrain 的回复:
使用正则表达式替换掉空格、换行符、回车符等 ......