“MediaWiki:Key press模板”与“JVM method translate to bytecode”:页面之间的差异

来自WHY42
(页面间差异)
imported>Soleverlee
无编辑摘要
 
 
第1行: 第1行:
在文章中显示按键操作。从[https://www.mediawiki.org/wiki/Template:Key_press/core Mediawiki]复制出以下的模板,添加到自己的网站中:
= 特殊方法 =
*Template:Key_press
== xxx ==
*Template:Key_press/core
<syntaxhighlight lang="java">
*Template:Unicode


然后在LocalSettings.php中添加引用:
</syntaxhighlight>
<source lang="php">
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
</source>


*refer:http://codenuggets.com/2014/03/26/mediawiki-keypress-style
<syntaxhighlight lang="java">
[[Category:Help]]
 
</syntaxhighlight>
 
== 默认构造函数 ==
<syntaxhighlight lang="lisp">
aload_0
invokespecial #1                  // Method java/lang/Object."<init>":()V
return
</syntaxhighlight>
 
<syntaxhighlight lang="java">
 
</syntaxhighlight>
 
= statements =
== 创建对象==
<syntaxhighlight lang="java">
HelloWorld s = new HelloWorld();
</syntaxhighlight>
 
<syntaxhighlight lang="lisp">
new          #5                  // class HelloWorld
dup
invokespecial #6                  // Method "<init>":()V
</syntaxhighlight>
 
[[Category:JVM]]

2021年4月20日 (二) 02:00的版本

特殊方法

xxx

默认构造函数

aload_0
invokespecial #1                  // Method java/lang/Object."<init>":()V
return

statements

创建对象

HelloWorld s = new HelloWorld();
new           #5                  // class HelloWorld
dup
invokespecial #6                  // Method "<init>":()V