2014年9月23日 星期二

2014/9/23 今日學習

看了幾篇文章

  • The escape character (\) can be used to insert apostrophes, new lines, quotes, and other special characters into a string.
  • Strings Can be Objects. Don't create String objects. They slow down execution speed, and produce nasty side effects
  • Primitive values, like "John Doe", cannot have properties or methods (because they are not objects).But with JavaScript, methods and properties are also available to primitive values, because JavaScript treats primitive values as objects when executing methods and properties.
Arrays
  • var cars = ["Saab", "Volvo", "BMW"];

  • if you want to use image from your computer in your design, upload it to a site like imgur.com and use the public URL the public URL, not a webpage with the image on it.
  • <link>可以讓你從外部連結.css檔,這樣就不用全部樣板都寫在同一個HTML裡
  • <link href="normalize.css" rel="stylesheet"> normalize.css可以讓你的畫面在不同的browser看起來都較一致, rel always set stylesheet

今晚準備明天要報告的資料,想起自己需要Node.js

沒有留言:

張貼留言