08 2021 档案

摘要://打印1-10 /*for(var i=1;i<=10;i++){ console.log(i); }*/ //逆序打印10-1 /*for(var i=10;i>=1;i--){ console.log(i); }*/ //求1-100的偶数和 /*var sum=0; for(var i=1; 阅读全文
posted @ 2021-08-29 15:13 JLL1515 阅读(43) 评论(0) 推荐(0)
摘要://让用户输入一个1-7之间的整数,判定是周几 var day=prompt("请输入一个1-7之间的整数:"); //将字符串转为数值类型值 day=parseInt(day); switch(day){ case 1: console.log("今天是周一"); break; case 2: c 阅读全文
posted @ 2021-08-29 15:12 JLL1515 阅读(54) 评论(0) 推荐(0)
摘要:// JavaScript Document //+:1.当两边都是数值类型时,进行加法运算 /*console.log(2+2.5); //2.当+号一边是字符串时,进行字符串拼接 console.log("sum="+2+2.5); //-:减法 console.log(2.5-1.5); // 阅读全文
posted @ 2021-08-29 15:04 JLL1515 阅读(42) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-29 14:59 JLL1515 阅读(35) 评论(0) 推荐(0)
摘要:// JavaScript Document var str="I love java,java love me"; //获取指定下标对应的字符 var s1=str.charAt(5); document.write(s1+"<br>"); //将字符串全部转大写 document.write(s 阅读全文
posted @ 2021-08-24 16:16 JLL1515 阅读(95) 评论(0) 推荐(0)
摘要:// JavaScript Document /*显示定义变量*/ /*var a=10; a=20; alert(a);*/ /*定义变量可以不赋值,使用时再赋值,但不赋值就使用时值为undefined*/ /*var a; a=20; alert(a);*/ /*一次可以定义多个变量*/ /*v 阅读全文
posted @ 2021-08-24 16:08 JLL1515 阅读(54) 评论(0) 推荐(0)
摘要:作业: <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <link rel="stylesheet" href="zuoye1.css"> </head> <body> <a name="flag"> 阅读全文
posted @ 2021-08-21 16:40 JLL1515 阅读(62) 评论(0) 推荐(0)
摘要:作业: <!doctype html> <html> <head> <meta charset="utf-8"> <title>山东理工大学</title> <link rel="shortcut icon" href="./logo.ico"> <link rel="stylesheet" hre 阅读全文
posted @ 2021-08-21 16:36 JLL1515 阅读(91) 评论(0) 推荐(0)
摘要:作业: 阅读全文
posted @ 2021-08-20 08:34 JLL1515 阅读(39) 评论(0) 推荐(0)
摘要:css三种引入方式: 1.内联:在标签中添加style属性,属性值用来描述样式 <标签名 style="样式名1:样式值1;样式名2:样式值2"></标签名> 2.内嵌: 在head标签中添加 <style> 选择器{ 样式名1:样式值1; 样式名2:样式值2; ... } </style> 选择器 阅读全文
posted @ 2021-08-17 18:28 JLL1515 阅读(90) 评论(0) 推荐(0)
摘要:<form action="将表单元素值要提交给地址" method="提交方式"</from> 提交方式: 1.get 提交的地址?name值1=value值1&name值2=value值2 通过url地址栏提交给服务器 2.post 99%表单提交都是这个 (1)安全,传数据大小没有限制 表单元 阅读全文
posted @ 2021-08-16 18:54 JLL1515 阅读(65) 评论(0) 推荐(0)
摘要:有序列表: <ul> <li>内容1</li> <li>内容2</li> </ul> 有序列表: <ol> <li>内容1</li> <li>内容2</li> </ol> 定义列表: <dl> <dt></dt> <dd></dd> <dt></dt> <dd></dd> </dl> 表格: <ta 阅读全文
posted @ 2021-08-16 18:16 JLL1515 阅读(58) 评论(0) 推荐(0)
摘要:基本知识: 运行之后: 作业一: 我写的代码: 作业二: 我写的代码: 阅读全文
posted @ 2021-08-16 16:45 JLL1515 阅读(36) 评论(0) 推荐(0)