标签:
var result = something + anotherThing + yetAnotherThing +
somethingElse + anotherSomethingElse;
var count = 10;
var myName = "Nick";
var found = true;
function getName(){
return myName;
}
边框 | 含义 |
can | 函数返回一个布尔值 |
has | 函数返回一个布尔值 |
is | 函数返回一个布尔值 |
get | 函数返回一个非布尔值 |
set | 函数用来保存一个值 |
//Good
var longString = "Here‘s the story of a man " +
"named Brady.";
//这是一种奇技淫巧而非语言特性。在Google的JavaScript风格指南中是禁止的。
var longString = "Here‘s the story of a man \
named Brady.";
标签:
原文地址:http://www.cnblogs.com/dearzui/p/5283735.html