js对象常用手记
2021-03-11 10:27
标签:script case 字符串 函数 js对象 字符 java lower code runoob 200 js对象常用手记 标签:script case 字符串 函数 js对象 字符 java lower code 原文地址:https://www.cnblogs.com/tanzizheng/p/12840280.html
script>
var txt="Runoob";
document.write(txt.toLowerCase() + "
");
document.write(txt.toUpperCase());
script>
RUNOOBscript>
eval("x=10;y=20;document.write(x*y)");
document.write("
" + eval("2+2"));
document.write("
" + eval(x+17));
script>
4
27