ssm挑战html页面,index.html

css行内样式

p

// 网页输出字符串

/*

* var 是js所有数据类型

*/

var i = 0;// int i =0;

var j = true;// boolean

var t = "String类型";

var I = 5;

console.log(i);

console.log(j);

console.log(t);

console.log(I);

/*

* js 基本数据类型 Undefind,Boolean,Number,String

*

* typeof 关键字 检测变量的类型

*/

var g;//没给变量初始化就是 Undefind

console.log(g);

document.write("g "+ typeof g + "
");

document.write("I "+ typeof I + "
");

document.write("I "+ typeof t + "
");

document.write("I "+ typeof j + "
");

/**

* 打印九九乘法表

* 等腰三角形

* *

* ***

* *****

* 1到100之和

*/

for(var i ; i<10; i++){

}

//基本函数 function

console.log("调用方法前");

function show(){

console.log("方法");

}

console.log("-->");

//使用函数

show();

console.log("调用方法后");

function parameter(a,b,c){

alert(a+b);

}

parameter(1,2,true);

function return1(a,b){

return a*b;

}

alert("3*4="+return1(3,4));

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值