Test javascript e4x in firefox3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test javascript e4x</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
也可以将script的type直接写成"text/javascript"<br/>
<script type="text/javascript;e4x=1">
var person = <description>
<name>_test</name>
<sex>male</sex>
<age>30</age>
</description>;
document.write("The person' name is '" + person.name + "'");
</script>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test javascript e4x</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
也可以将script的type直接写成"text/javascript"<br/>
<script type="text/javascript;e4x=1">
var person = <description>
<name>_test</name>
<sex>male</sex>
<age>30</age>
</description>;
document.write("The person' name is '" + person.name + "'");
</script>
</body>
</html>
No comments :
Post a Comment