JS没有像VB一样的Len,Trim等等但js 的传有length属性
没有Trim就写一个
/*** 删除首尾空格 ***/
String.prototype.Trim = function() {
  return this.replace(/(^\s*)|(\s*$)/g, "");
}
/*** 返回字节数 等价于vbs的lenb ***/
String.prototype.lenb = function() {
  return this.replace(/[^\x00-\xff]/g,"**").length;
}