Initial commit: caddy static file server workspace
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
13
caddy/www/module-demo/math.js
Normal file
13
caddy/www/module-demo/math.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// 匯出函式
|
||||
export function add(a, b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
// 匯出常數
|
||||
export const PI = 3.14159;
|
||||
|
||||
// 預設匯出(每個檔案只能有一個)
|
||||
export default function multiply(a, b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user