重构项目
This commit is contained in:
5
examples/QuickJS/.pages.yaml
Normal file
5
examples/QuickJS/.pages.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
routes:
|
||||
- path: "api/v1/**"
|
||||
qjs:
|
||||
exec: "index.js"
|
||||
debug: true
|
||||
13
examples/QuickJS/index.html
Normal file
13
examples/QuickJS/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
7
examples/QuickJS/index.js
Normal file
7
examples/QuickJS/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
response.write("hello world")
|
||||
console.log("hello world")
|
||||
console.log(req.methaaod)
|
||||
function aaa(){
|
||||
throw Error("Method not implemented")
|
||||
}
|
||||
aaa()
|
||||
Reference in New Issue
Block a user