随笔分类 -  2021练习

摘要:1.重写json请求部分:HTML文件代码如下:<html>......<script> var myList = document.querySelector(‘ul‘); fetch(‘https://raw.githubusercontent.com/Bulalalala-Ly/package 阅读全文
posted @ 2019-01-10 21:20 Yuki-Lan 阅读(110) 评论(0) 推荐(0)
摘要:调用一个地图(百度地图)API(定位) 到网站: 1.调用API的js : <script type="text/javascript" src="https://api.map.baidu.com/api?type=subway&v=1.0&ak=2Xn5TnHUisrYpE8oy5OCAun8Y 阅读全文
posted @ 2018-12-21 21:50 Yuki-Lan 阅读(115) 评论(0) 推荐(0)
摘要:Obtaining the JSON: 1.首先,我们将把要检索的JSON的URL存储在变量中。 2.要创建请求,我们需要使用new关键字从XMLHttpRequest构造函数创建一个新的请求对象实例。 3.现在我们需要使用open ( )方法(XMLHttpRequest.open():初始化请求 阅读全文
posted @ 2018-12-21 21:33 Yuki-Lan 阅读(96) 评论(0) 推荐(0)
摘要:一、Iterations : 1.do...while : 创建执行指定语句的循环,直到测试条件评估为false。在执行语句后评估条件,导致指定语句至少执行一次。 例子:在以下示例中,do...而循环迭代至少一次并重复,直到我不再小于5。 var result = ''; var i = 0; do 阅读全文
posted @ 2018-11-07 20:56 Yuki-Lan 阅读(110) 评论(0) 推荐(0)
摘要:History of program 第一阶段:1950与1960年代 1.三个现代编程语言: (1)Fortran (1955),名称取自"FORmula TRANslator"(公式翻译器),由约翰·巴科斯等人所发明; (2)LISP,名称取自"LISt Processor"(枚举处理器),由约 阅读全文
posted @ 2018-11-07 20:53 Yuki-Lan 阅读(173) 评论(0) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html> 3 <body> 4 <title>统计字符串中某个字符的个数</title> 5 <script> 6 var countryList=["one","two","three","four","five","six"]; 7 var count 阅读全文
posted @ 2018-10-29 20:48 Yuki-Lan 阅读(478) 评论(0) 推荐(0)
摘要:DOM 1.概念起源: 文档对象模型(Document Object Model,简称DOM),是W3C组织推荐的处理可扩展标志语言的标准编程接口。在网页上,组织页面(或文档)的对象被组织在一个树形结构中,用来表示文档中对象的标准模型就称为DOM。Document Object Model的历史可以 阅读全文
posted @ 2018-10-26 22:37 Yuki-Lan 阅读(262) 评论(0) 推荐(0)
摘要:1 2 3 4 fixed和sticky 5 6 7 8 9 fixed 10 sticky 11 12 1 body{ 2 margin:0px; 3 } 4 .one { 5 width:100px; 6 height:1000px; 7 b... 阅读全文
posted @ 2018-10-23 11:33 Yuki-Lan 阅读(119) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-10-16 21:46 Yuki-Lan 阅读(138) 评论(0) 推荐(0)
摘要:1 2 One 3 Two 4 Three 5 Four 6 Five 7 Six 8 1 .wrapper { /*带有指定类(wrapper)的元素*/ 2 display: grid; /*定义一个容器属性为网格布局*/ 3 grid-template-column... 阅读全文
posted @ 2018-09-29 14:54 Yuki-Lan 阅读(198) 评论(0) 推荐(0)
摘要:1 2 3 4 5 测试absolute与fixed 6 7 8 9 10 absolute 11 fixed 12 13 fixed相对移动的坐标是视图(屏幕内的网页窗口)本身,而absolute相对body坐标原点进行定位 14 1 div{ 2 width:100px; 3 height:100... 阅读全文
posted @ 2018-09-21 09:45 Yuki-Lan 阅读(129) 评论(0) 推荐(0)
摘要:1 <code class="language-html"><div class="width100 marT15 content_news_list"> 2 <div class="width96 mauto"> 3 <div class="width100" > 4 <table style=" 阅读全文
posted @ 2018-09-17 17:23 Yuki-Lan 阅读(169) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-11 11:14 Yuki-Lan 阅读(187) 评论(0) 推荐(0)