「浪語」:修訂間差異

無編輯摘要
無編輯摘要
標籤2017 原始碼編輯
無編輯摘要
標籤2017 原始碼編輯
第188行: 第188行:
// 冒號 (:) 後面是 RegExp,如果匹配才呼叫。
// 冒號 (:) 後面是 RegExp,如果匹配才呼叫。
// 適用於 user 和 content (第一和第二個參數)
// 適用於 user 和 content (第一和第二個參數)
event msg (user: "lambda", content, url, tripcode, req){
event msg (user: "lambda", content, url, tripcode, req) => {
    drrr.print(user + " 叫了一下");
    drrr.print(user + " 叫了一下");
}
}


// 參數個數和名稱都可以任意,看你需求
// 參數個數和名稱都可以任意,看你需求
event join (user){
event join (user) => {
    drrr.print("welcome " + user);
    drrr.print("welcome " + user);
}
}
153

次編輯