<script type="text/javascript">
var StringObj = new String( "abc" );
document.write ( typeof( StringObj ) );
document.write ( "<br />" );
document.write( StringObj.length ); //计算字符串长度
object
3
<script type="text/javascript">
var url = prompt( "Please enter our URL ", "" );
document.write( url.substring(4, 9) );
</script>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |