📄 create_methods3.js
字号:
String.prototype.convertUnderscores = function()
{
return this.replace(/_/g, " ");
};
var underscored = "Are_there_any_spaces_in_here?";
var spaced = underscored.convertUnderscores();
alert("Original string: " + underscored + "\nUnderscores removed: " + spaced);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -