随笔分类 -  JavaScript

JavaScript基础,用于复习
摘要://demo1 javascript对象 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script> //1.采用直接量方式创建对象 function f1(){ var 阅读全文
posted @ 2020-05-13 21:01 two_q 阅读(152) 评论(0) 推荐(0)
摘要://demo1制作简单轮播图 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <style type="text/css"> div { border: 1px solid r 阅读全文
posted @ 2020-05-13 20:56 two_q 阅读(138) 评论(0) 推荐(0)
摘要://demo1定时器 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script> function cal(){ //获取文本框 var input = document 阅读全文
posted @ 2020-05-13 20:50 two_q 阅读(118) 评论(0) 推荐(0)
摘要://demo1 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script> //2.Number var n = 3.1415926; console.log(n.toF 阅读全文
posted @ 2020-05-13 20:44 two_q 阅读(100) 评论(0) 推荐(0)
摘要://demo1 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <!-- 嵌入式:在script标签里写js, 该标签可以放在网页的任意位置,但 通常放在head里较多. -- 阅读全文
posted @ 2020-05-13 20:41 two_q 阅读(190) 评论(0) 推荐(0)