做類似的變量:調用JavaScript中的函數,用它
speak('Hello. Today is " + month + "/" + day + "/" + year + ", " + hours + ":" + minutes + ". I have couple suggestions of what to do today...Wanna go to the movies? Play some games? Go out to eat? Need anything else?')
當他們寫道,它的字面說" + month + "/" + day + "/" + year + ", " + hours + ":" + minutes + "
speak('')
是另一個腳本定義的函數。有可能把變量放在裏面嗎?
更改雙引號('「')爲單引號(''') –
或者將單引號改爲雙引號,速度要快得多。 – Antony