<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">html
<html xmlns="http://www.w3.org/1999/xhtml">數組
<head>ui
<title>對象操做</title>spa
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />xml
<meta name="description" content="布爾教育 http://www.itbool.com" />htm
<script>對象
var str="helloworld";ip
console.log(str.substr(1,2));utf-8
var a=['春','下','秋','冬'];it
document.write(a.join('a'));//增長元素
var str1='春,的,是,是de';
console.log(str1.split(','));//拆成數組
</script>
</head>
<body>
</body>
</html>