📄 compacting-names.js
字号:
// Please note: this file contains snippets for comparison
// it is not self-contained or ready-to-use code as such
function castSpell(incantation, potion)
{
if (typeof potion == 'undefined') { potion = 'felix'; }
var spell = document.getElementById(incantation);
if (spell)
{
spell.style.display = 'block';
spell.firstChild.nodeValue = 'Potion: ' + potion;
}
}
function castSpell(n, p)
{
if (typeof p == 'undefined') { p = 'felix'; }
var s = document.getElementById(n);
if (s)
{
s.style.display = 'block';
s.firstChild.nodeValue = 'Potion: ' + p;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -