js常用対象
2563 ワード
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js title>
<script type="text/javascript">
//js
//String
//JavaScript
//String
//String.length
//a.charAt(Index) index:
//a.charCodeAt(Index) index: , ascii
//indexOf(str); str:
//lastIndexOf(str) str:
// , -1
//a.replace(" "," ")
//a.slice(n,m) n n, m m
//a.substr(n,m) n , n, m
//a.subString(n,m) n , m, m
//a.split(" ")
var a="ABCSACAS";
var b=a.substr("1","3");
alert(b);
script>
head>
<body>
body>
html>