本人刚学 html 和 js 写了下面2个文件 感觉应该显示 hello world 但实际是什么也不显示,请问我错在哪?
test.html 内容
nbsp;html>
example
test.js 内容
function myfunc()
{
document.writeln(hello world);
}
回复讨论(解决方案) nbsp;html>
example
test.js 内容
function myfunc()
{
alert(hello world!');
document.writeln(hello world);
}
把两个文件放在同一个文件夹试试. 试了,没什么效果
找到问题了
写成 就好
