感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
输入 HTML 代码……
xxxxxxxxxx
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
return String(this).replace(/^\s+|\s+$/g, '');
};
}
if(" dog " === "dog") {
document.write("这里不会显示");
if(" dog ".trim() === "dog") {
document.write("成功去除首尾空格");
输入 CSS 代码……