1.0.3 • Published 2 years ago
njkkjkkjn v1.0.3
#※验证码
npm i zinniaa-index -S
#例如 使用:
const index=require("zinniaa-index") console.log(index.data)//{text:'9a0a',data:''}
#结合 http模块
const http=require('http) const index=require("zinniaa-index")
const index=http.createServer((req,res)=>{ res.setHeader('content-type','text/html;charset=utf-8') let temp=index.create() console.log(temp)//{text:'9a0a',data:''} res.end(temp,data) })
app.listen(3000,()=>{ console.log('启动成功,http//localhosy:3000'); })
1.0.3
2 years ago