SQL sever中
select len('hello') 5
select len(' hello ')(前后各空格一个) 6
select len('hello ')(后空格一个) 5
select len(' hello')(前空格一个) 6
javascript
var a = new Array(5);
a[0] = 1;
a[2] = 2;
alert(a.length());
result:5
SQL sever中
select len('hello') 5
select len(' hello ')(前后各空格一个) 6
select len('hello ')(后空格一个) 5
select len(' hello')(前空格一个) 6
javascript
var a = new Array(5);
a[0] = 1;
a[2] = 2;
alert(a.length());
result:5