摘要:Callback (回调函数) 在计算机程序设计中,回调函数,或简称回调(Callback 即call then back 被主函数调用运算后会返回主函数),是指通过函数参数传递到其它代码的,某一块可执行代码的引用。这一设计允许了底层代码调用在高层定义的子程序。回调函数是作为参数传递给另一个函数的函
阅读全文
摘要:效果图 json文件 https://raw.githubusercontent.com/sherryloslrs/timetable/master/timetable.json js文件 html文件
阅读全文
摘要:heroes.html Our superheroes style.css/* || general styles */ html { font-family: 'helvetica neue', helvetica, arial, san...
阅读全文
摘要:事件流动 DOM事件不单单只会在一个Element上触发,它还会流向其他Element。事件的流动通常会经历这么三个阶段: 捕获阶段 -> 目标阶段 -> 冒泡阶段 "eventPhase" “eventPhase”是“Event”下的一个属性,它指明当前event属于那一个阶段。 “eventPh
阅读全文
摘要: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
阅读全文
摘要: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 =
阅读全文
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Register Form</title></head><body bgcolor="#FAEBD7"><center><h1>Welcome to register</h1><for
阅读全文