Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
河马船长奇遇记 583 Bytes
Copy Edit Web IDE Raw Blame History
Greasen authored 2020-03-26 16:02 . add 河马船长奇遇记.
/*
* js编程故事 《河马船长奇遇记》
*/
export function story() {
// 定义主人翁
const hippopotamus = {
name: 'captain',
age: 18,
talk: function(val) {
alert(val)
},
look: function() {
console.log("看了看~")
},
drive: function(val, cb) {
alert(val)
}
}
function sail() {
hippopotamus.drive("驾驶着一艘船", function() {
console.log("驾驶的时候,待会儿再编")
})
}
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542