java 的 一点记录

本文介绍了JavaScript的基本知识,包括变量比较、特殊命令(如prompt、alert、confirm)的使用,以及与C语言的相似之处。强调了JavaScript在Web开发中的应用,并提到了其独特语法和常用命令。

1. put space on the two sides of %, not mandatory,//can be ignored.

2.But we use === (three equal signs) to check if one variable's value is "equal" or "identical" to another variable's value.
as == can have some odd behavior in javescript.
3. backup some command used here
prompt(.....  prove you to write sth
confirm("your message here");//to confirm
alert("your message");// pop up an alert, which do not give users the option to cancel_they can only click OK.

god, javascript ,at least the basic knowledge is simple, quite similar to C. except using === instead of ==.maybe it is the only difference in syntax. all others are same, parenthesis, semicolon,brackets are the used in the same exact case.
Besides, there are special commands in javescript, like prompt, alert, confirm, which is quite understandable, as it is for the appication of web developping.

转载于:https://www.cnblogs.com/aprilapril/archive/2012/01/29/2330806.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值