两个命令没有在浏览器上运行,请找到问题

two commands are not running on browser please find the problem?

本文关键字:运行 问题 浏览器 两个 命令      更新时间:2023-09-26

下面的两个命令不能在浏览器.......上运行谁来找出问题........

<SCRIPT LANGUAGE="JAVASCRipt">
var myVariable="my name is sonia";
document.writeln(myVariable.big());
document.writeln(myVariable.blink());
document.writeln(myVariable.bold());
document.writeln(myVariable.fixed());
<!-- the following two lines have problems -->
document.writeln(myVariable.fontcolor(“red”));
document.writeln(myVariable.fontsize(“18pt”));
document.writeln(myVariable.italics() );
document.writeln(myVariable.small());
document.writeln(myVariable.strike());
document.writeln(myVariable.sub());
document.writeln(myVariable.sup());
document.writeln(myVariable.toLowerCase());
document.writeln(myVariable.toUpperCase());
var finalString = myVariable.bold().toLowerCase().fontcolor("red");
document.writeln(finalString);
var newvar=myVariable.split('');
document.write(newvar);

</script>

在我看来,你在那里使用了一些错误的双引号。这些代码可以根据需要工作

document.writeln(myVariable.fontcolor("red")); 
document.writeln(myVariable.fontsize("18pt"));