前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >给出一个javascript的Helloworld例子

给出一个javascript的Helloworld例子

作者头像
马克java社区
修改2019-10-08 11:17:01
4110
修改2019-10-08 11:17:01
举报
文章被收录于专栏:java大数据

1.基础知识:

1)Helloworld:

例 1.1

<html>

<head>

<!-- 如果你用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

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档