我是靠谱客的博主 火星上外套,这篇文章主要介绍给出一个javascript的Helloworld例子,现在分享给大家,希望可以做个参考。

1.基础知识:
1)Helloworld:

例 1.1
<html>
<head>
    <!--  马克-to-win:如果你用notepad建立一个txt之后你再改为html,一定在存时,要存成utf-8或unicode格式,或者你也可以用 myeclipse html designer,这样你看的文本是有颜色的,如果觉得字体小,可以在myeclipse html designer下面的窗口里右击鼠标,/preferences/general/editor/text editor.注意在texteditor窗口里面的右边最下面,有一行不起眼你的小字,color and font,你可以设置。-->
</head>
<script type="text/javascript">
    var a ;
    /*before you set value, a' type can not be defined.*/
    document.writeln(typeof(a) + "<br>他们");
    a = true;
    document.writeln(typeof(a) + "<br>");
    /*下面的console.log只有安装了firebug的firebox不报错*/
    console.log("This is the 1 message 马克-to-win write in %s", a);
    document.writeln(a);
</script>我们

更多请见:https://blog.csdn.net/qq_44594249/article/details/97655818

最后

以上就是火星上外套最近收集整理的关于给出一个javascript的Helloworld例子的全部内容,更多相关给出一个javascript内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(74)

评论列表共有 0 条评论

立即
投稿
返回
顶部