【发布时间】:2020-07-22 15:42:23
【问题描述】:
我目前的项目
我正在尝试使用 jQuery 终端制作一个终端风格的网页。
我的问题
我不知道如何向终端添加多个命令。
这是我的代码:
$('body').terminal({
hello: function(name) {
this.echo('Hello, ' + name +
'. Welcome to the Rapocrythia command line.');
}
}, {
greetings: 'Rapocrythia Command Line[Version 0.0.1]\n(c) Copyright Rapocrythia Systems, Inc. All Rights Reserved.'
}
);
【问题讨论】:
-
有很多jquery终端插件,你有你正在使用的那个文档的链接吗?
-
这是docs。
标签: javascript jquery jquery-terminal