發表文章

目前顯示的是 2016的文章

Convert Image to Data URI with JavaScript

陣列排序

如何在JavaScript實現多維陣列?

斐波那契數列(Fibonacci)

安裝完node.js,在mac中建立http-server,並指定localhost工作路徑

null & undefined的差別

用node.js方式建立localhost(基本安裝)

關於form中上傳檔案的相關功能會用到的一些語法

formObject.elements語法&再為short-circuit evaluation舉個例子

"innerText" & "innerHTML" & "textContent" & "nodeValue"差異?

Select tag 相關語法

從例子中看"短路求值(Short-circuit evaluation)"(又稱: 最小化求值)

Checkbox的全選/全不選/反選功能

document.getElementsByName()和for..in loop結合的例子

element.scrollHeight可用來讓textarea tag自動調整文字行數

今天看到的例子, 原來regExp可以這麼寫: /[外]{1}.{0,3}[掛]{1}/~~

正規表達式的查找url

window.opener & window.parent & window.top

Window.showModalDialog() will soon be deprecated

window.opener介紹

製作影像地圖(image-map)

學寫window.open()時會需要知道的一些名詞

當瀏覽器不支援JSON.parse(), 用new Function解決, 而非eval()

input元素 & form都有autocomplete attribute

表單功能: 游標保持在文字最後, 方便繼續輸入文字

表單功能: 點選選項時, 選項內容自動複製到另個文字輸入框

string.toLocaleLowerCase()

DOM insertBefore() & DOM parentNode property

offsetLeft, offsetTop, offsetParent property

DOM nodeType Property介紹

表單功能之"即時提示可輸入字元(區分中英文)"

從oncopy和onpaste中看js的return false,return,return true用法&差異

HTML5: "input" pattern Attribute

什麼是html xmlns=”http://www.w3.org/1999/xhtml & DOCTYPE v.s. Quirks Mode?

在HTML tag新增custom attribute

unicode編碼[\u4e00-\u9fa5]指中文範圍

ime-mode (CSS)

JavaScript事件的3種寫法~

隱藏欄位介紹 & stateless protocol v.s. stateful protocol

disabled & readonly的差別?

disabled & disabled = "disabled"的差異?