var operate2='OR';
for (var j = 0, len = operate1.length; j< len; j++) {
//获得unicode码
var ch2 = operate1.charAt(j);
if (j == 0) {
operate2 = ch2.toUpperCase();
}
else {
operate2+= ch2.toLowerCase();
}
}
得到结果为:Or