天天看点

js中用script 嵌套script块

< DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd>

把script拆开就可以了

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>新闻</title>

</head>

<body>

<script language="JavaScript">

<!--

if (true) {

document.write("<scr"+"ipt language='VBScript' \>\n");

document.write("</script\>\n");

}

//-->

</script>

</body>

</html>

#javascript/ajax专栏