# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GlobalMessageListen : global message listen.
If :
if $condition is Js and ">","==",">=","<=" in $condition :
===>
if (${condition} ){
$runJs
}[ else { .
JsLog : console.log(val).
L : route (green) , action (red) , contents ...
No description provided by the author
創建websocket 並監聽.
No description provided by the author
NextActionNotify : f.
ParseFrom
# normal :
// name , [default] , id = "xxx", type="xxx"
# select:
// name , id=xx , / options1 / options2
# date
// name , id=xx , type = "date"
# num
// name , id=xx , type ="num"
*/.
Post :
@action : set url
@args : map[string]string/ string / Js ; upload data
@isJson: bool ; if true use $.ajax()
$.ajax({
url: '%s',
type: 'post',
dataType: 'json',
contentType: 'application/json',
success: function (result) {
%s
},
data: JSON.stringify(%s)
});
@callback :
func(result Js) Js{
handle ..
PreparedRoute : regist a func to map.
Query :
$("${selector}")
*/.
RegistWebSocketCallback : regist a callback in server.
RegistWebSocketFunc : define how to deal onMessage in server and front.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToForm from str to input
Name / type[value]
${type} : email / text/ number / password /checkbox
if "/" more than one will become radios/ select:
2 < x < 5:
radios
5 <= x :
selects
example:
user ==> <input type=text name="user">
user / zhangsan ==> <input type=text name="user" value="zhangsan" >
id / ${number} ==> <input type=num name="id">
id / 1234 ==> <input type=num name="id" value="1234" >
ident / id card / passport ==> <select class="form-control" name=ident ><option>id card</option><option>passport </option></select>
*/.
Val :
获得字符串的变量, 其实等同于 Js(valStr)
*/.
No description provided by the author
No description provided by the author
No description provided by the author
WithFunc :
name = function(args...){
${js}
}
*/.
No description provided by the author
TODO : this function
*/.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JSOptionPost :.
No description provided by the author
No description provided by the author
PostionAfterBegin : position option.
PostionBeforeEnd : position option.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WebsocketOnMessage : how to deal mssage from websocket.
WebsocketOnMessageQueue :Websocket Out message.
# Structs
No description provided by the author
No description provided by the author
Field html field
Tag string `html:"tag=input"`
Name string `html:"name"`
ID string `html:"id"`
Value string `html:"value"`
Type string `html:"type=text"`
Class string `html:"class=form-controll"`
Placeholder string `html:"placeholder"`
Readonly bool `html:"readonly"`
Text string `html:"text"`
*/.
No description provided by the author
No description provided by the author
No description provided by the author
Page : web server page.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
用於websocket.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author