西瓜瓜瓜

导航

随笔分类 -  web前端

Async CallBack promise fetch
摘要:Callback (回调函数) 在计算机程序设计中,回调函数,或简称回调(Callback 即call then back 被主函数调用运算后会返回主函数),是指通过函数参数传递到其它代码的,某一块可执行代码的引用。这一设计允许了底层代码调用在高层定义的子程序。回调函数是作为参数传递给另一个函数的函 阅读全文

posted @ 2018-12-02 11:50 西瓜瓜瓜 阅读(161) 评论(0) 推荐(0)

Rewrite json
摘要:, 阅读全文

posted @ 2018-12-02 11:49 西瓜瓜瓜 阅读(153) 评论(0) 推荐(0)

贝塞尔曲线
摘要: 阅读全文

posted @ 2018-11-27 15:22 西瓜瓜瓜 阅读(149) 评论(0) 推荐(0)

用canvas画一个房子
摘要:效果图: 阅读全文

posted @ 2018-11-27 14:33 西瓜瓜瓜 阅读(1842) 评论(0) 推荐(0)

使用json改写网站
摘要:效果图 json文件 https://raw.githubusercontent.com/sherryloslrs/timetable/master/timetable.json js文件 html文件 阅读全文

posted @ 2018-11-18 15:23 西瓜瓜瓜 阅读(374) 评论(0) 推荐(0)

A JSON example
摘要:heroes.html Our superheroes style.css/* || general styles */ html { font-family: 'helvetica neue', helvetica, arial, san... 阅读全文

posted @ 2018-11-15 11:59 西瓜瓜瓜 阅读(179) 评论(0) 推荐(0)

Event Flow
摘要:事件流动 DOM事件不单单只会在一个Element上触发,它还会流向其他Element。事件的流动通常会经历这么三个阶段: 捕获阶段 -> 目标阶段 -> 冒泡阶段 "eventPhase" “eventPhase”是“Event”下的一个属性,它指明当前event属于那一个阶段。 “eventPh 阅读全文

posted @ 2018-11-09 16:21 西瓜瓜瓜 阅读(152) 评论(0) 推荐(0)

constructor&object 的对比
摘要:Constructor vs object A constructor is a special member function in the class to allocate memory to an object. It can be used to provide values for th 阅读全文

posted @ 2018-11-06 17:15 西瓜瓜瓜 阅读(142) 评论(0) 推荐(0)

CSS中的单位
摘要:absolute units in 英寸 cm 厘米 mm 毫米 pt 磅 (1 pt 等于 1/72 英寸) pc 12点活字 (1 pc 等于 12 点) The relation between the absolute units is as follows: 1in = 2.54cm = 阅读全文

posted @ 2018-10-08 19:46 西瓜瓜瓜 阅读(282) 评论(0) 推荐(0)

Register Form
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Register Form</title></head><body bgcolor="#FAEBD7"><center><h1>Welcome to register</h1><for 阅读全文

posted @ 2018-09-15 23:05 西瓜瓜瓜 阅读(191) 评论(0) 推荐(0)