七喜鬼★rz 发表于 2014-1-13 11:13:29

[转]让人抓狂的代码!

1.确保这个值等于tureif (someBoolean == true) {    doSomething();}2.只有等于ture时我才return tureif (result == true)    return true;else    return result;3.我就是不信任ifif (result <= 10) {    handling();}else if (result > 10) {    otherHandling();}else {    handling(); // to be sure}
4.要写出一看就懂的代码function DocumentDotWrite(s){    document.write(s);}
页: [1]
查看完整版本: [转]让人抓狂的代码!