顯示具有 JavaScript 標籤的文章。 顯示所有文章
顯示具有 JavaScript 標籤的文章。 顯示所有文章

2017年8月10日 星期四

Advanced JS Chapter 2

課程內容:

今年課程Github:
https://github.com/QQBoxy/2017vc

RESTful API in Node and Express:
https://github.com/scotch-io/node-api

全端 React + Express + Webpack + Live-Reload 開發環境範例:
https://github.com/QQBoxy/react-express-webpack-full-live-reload-example

全端 Express + MongoDB 範例
https://github.com/QQBoxy/express-mongodb-example

C POST Create
R GET Read
U PUT Update
D DELETE Delete

作業:
[專題生] 請建立自己的專題網站

[碩班] 請幫忙更新實驗室網站
https://ccucadcam.blogspot.com/

2017年8月8日 星期二

Advanced JS Chapter 1

課程內容:

今年課程Github:
https://github.com/QQBoxy/2017vc

如何建立一個網路服務?

開發工具
  • 前端(Front-End)
    1. HTML + JavaScript + CSS
  • 後端(Back-End)
    1. Node.js + React + Express + MongoDB

一個常見的網路應用組成?

Web應用

  1. http://wordboxy.blogspot.com/?m=0
  2. http://youtuberepeat.blogspot.com/?m=0

雲端運算

  1. Siri
  2. Line Bot
  3. Alpha Go


如何撰寫"前端"到"後端"程式?

  1. https://pages.github.com/
  2. https://github.com/QQBoxy/react-express-webpack-full-live-reload-example


作業:
使用Git Page建一個,屬於自己的個人介紹網站。

2014年8月31日 星期日

Advanced JS Chapter 2

網路連線集線器、交換器、路由器、存取點關係圖
(圖片來源:http://windows.microsoft.com/zh-tw/windows/hubs-switches-routers-access-points-differ#1TC=windows-7)

JavaScript (index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example</title>
<script type="text/javascript">
window.onload=function() {
    var a = function(b) {
        return b + 10;
    };
    console.log( a(5) );
    
    var b = function() {
        return 3;
    };
    console.log( a( b() ) );
    
    var json = {
        "name" : "QQBoxy",
        "number" : 10,
        "action" : function() {
            console.log("Hello");
        }
    };
    json.action();
    
    document.getElementById("poo").onclick = function() {
        document.getElementById("foo").innerHTML = "Hello<br />World";
    };
    document.getElementById("boo").onclick = function() {
        location.href = "http://www.google.com/";
    };
};
</script>
</head>
<body>
Text: <button id="poo">Click me</button><br />
Link: <button id="boo">Click me</button><br />
<div id="foo"></div>
</body>
</html>

加快網頁下載速度,使用壓縮器:
http://closure-compiler.appspot.com/home

保護原始碼的方法,使用混淆器:
http://utf-8.jp/public/aaencode.html