欄位 | 內容 |
---|---|
學期 | 108 學年度下學期 |
學生 | xxx |
學號末兩碼 | xx |
教師 | 陳鍾誠 |
學校科系 | 金門大學資訊工程系 |
課程首頁 | 網頁設計 |
ccccourse / wp108b Goto Github PK
View Code? Open in Web Editor NEW網頁設計 -- 108 學年度下學期 (陳鍾誠的課程作業)
網頁設計 -- 108 學年度下學期 (陳鍾誠的課程作業)
請寫出下列函數與測試程式:
一維矩陣
二維矩陣
10*9*8*....*1
。請將本章中的《英翻中》系統,改成《中翻英》系統,但輸入的中文詞彙之間可以強制用空白隔開。
例如:
$ node mt2.js 一隻 狗 追 一隻 貓
[ 'a', 'dog', 'chase', 'a', 'cat' ]
請寫出一個具有『加、減、內積、負』的向量物件? (Vector, add, sub, dot, neg)
提示:第二題架構如下:
class Vector {
add(v2) { ... }
sub(v2) { ... }
dot(v2) { ... }
neg() { ... }
}
請把 2 儲存為 vector.js ,然後把當中的類別 Vector 用 module.exports 匯出,並用 vectorTest.js 去測試你的類別。
vectorTest.js
const V = require('./vector')
var v1 = new V.Vector([1,2,3])
var v2 = new V.Vector([1,1,1])
console.log('v1.add(v2)=', v1.add(v2))
console.log('v1.dot(v2)=', v1.dot(v2))
console.log('v1.neg()=', v1.neg())
輸出
v1.add(v2)= [2,3,4]
v1.dot(v2)= 6
v1.neg() = [-1,-2,-3]
模組寫法請參考 https://github.com/ccccourse/wp/blob/master/code/04-node/08-library/random/r.js
特別注意:請先閱讀 繳交報告與程式的注意事項!
網頁應用範例
學習筆記
以上兩者『二選一』去做就行了!
期末作業請在 6/26 之前繳交完畢!
特別注意:請先閱讀 繳交報告與程式的注意事項!
請在 5/24 之前繳交完畢! (請盡量早一點把題目傳上來)
基本上不分組,全部自己寫,一個人一份,當我有疑問的時候會進行口試。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.