I just learned Html and JS and wrote the following two files. I feel that Hello world should be displayed, but actually nothing is displayed. Where did I go wrong?
Test.html content
Example < meta charset="utf-8">
Test.js content
function Myfunc()
{
document.writeln("Hello world");
}
Reply to discussion (solution)
Example Test.js content
function Myfunc()
{
alert("Hello World!');
document.writeln("Hello world" ; script type="text/javascript" src="Test.js"> Just write
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn