JavaScript is a client-side script language, but we can use it on server side programming now. However, it is still difficult to write server-side application for front-end developer.
Here we try to find a solution to write server-side script that developer only need to understand and have client-side experience.
You can enjoy desktop development with Node.js and HTML5/CSS/WebGL right now. Here we also to announce that Stem project which is a JavaScript operating system, it makes developers be able to make things on embedded system with JavaScript only. There is no need to understand that difficult knowledge about embedded system when you work on Stem OS.
JavaScript is a client-side script language, but we can use it on server side programming now. However, it is still difficult to write server-side application for front-end developer.
Here we try to find a solution to write server-side script that developer only need to understand and have client-side experience.
You can enjoy desktop development with Node.js and HTML5/CSS/WebGL right now. Here we also to announce that Stem project which is a JavaScript operating system, it makes developers be able to make things on embedded system with JavaScript only. There is no need to understand that difficult knowledge about embedded system when you work on Stem OS.
3. 網頁前端語言 Javascript
n Javscript 與 HTML 同為網頁的公認標準,大
多瀏覽器都會支援
n Javascript 與網頁結合應用廣泛、技術成熟,
具有相當多的開發資源
n Javascript 可輕易實現跨平台、跨瀏覽器的理
想
4. n網頁前端語言 Javascript
n Javascript 開發難題
l DOM API 各自為政沒有統一呼叫方式
n 事件 Source:
IE→Event.srcElement
Firefox→function(e){e.target}
l 較少開發工具補助開發
l DOM API 語法冗長
10. 神奇的 jQuery Selector
n $(“span”).html(“Hello World”)
所有 span 內文字改成 Hello World
n $(“#table1 tr:odd”).css(“backgroud-
color”,”#00ff11”);
id 為 table1 所有奇數行背景色改成 #00ff11
n $(“.style2).hide();
class 為 style2 的元素全部隱藏
11. jQuery 常用的基本用法
n $(document).ready()
當 document 物件下所有 DOM 物件都可以正確取得時,就會
觸發 jQuery.ready() 註冊的 function 可簡成 $(function(){….})
n .show() .hide()
物件顯示、隱藏
n .attr(attributeName) .attr(attributeName,value)
取得或設定物件屬性
n .click
註冊 Click 事件
n .html()
取得或設定內容,功能同 innerHTML