ThinkJS 2.0 demos
thinkjs / thinkjs2-demos Goto Github PK
View Code? Open in Web Editor NEWdemos for ThinkJS 2
License: MIT License
demos for ThinkJS 2
License: MIT License
例子里面没有一点点提示,学起来好费力啊
file-session 这个例子讲的是啥,没看懂 是session 还是对文件操作
like above, thanks
export default {
on: true, //是否开启 WebSocket
type: "socket.io",
allow_origin: "",
sub_protocal: "",
adapter: undefined,
path: "", //url path for websocket
messages: {
open: 'home/index/open',
close: 'home/index/close',
chat: 'home/index/chat',
typing: 'home/index/typing',
stoptyping: 'home/index/stoptyping',
adduser: 'home/index/adduser'
}
};
请问,这个里边的 path 是什么意思path: "", //url path for websocket
allow_origin: "",
sub_protocal: "",
adapter: undefined,
虽然这三个还没用到,但是也不知道什么意思,官网的doc说的也不充分。
我想在 websocket 的 url 上加一个路径,然后能够这样连接 socket.io
io('http://127.0.0.1:8080/test');
自己建了个
id
name
email
title
的又不行
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.