随笔分类 - 前端 / JavaScript
摘要:Handing events 前言 这一章节主要讲了关于 events 的内容,讲了 event 的定义,以及如何用 code 来 react to events。同时,也说明了 JavaScript 中利用 event 编码的特点:它是 asynchronous 的,而不是 linear 的。 谈
阅读全文
摘要:上一章节,主要讲了如何用 Python 进行创建并写入新文件。这一章节,讲了对如何用 Python 对文件进行进一步的操作,包括: 移动,复制,删除文件 改名 压缩文件 [shutil]移动,复制,删除文件: 模块:shutil 模块的一些函数,具有复制,移动,删除文件的。shutil 指的是 sh
阅读全文
摘要:前言 主要介绍了关于 JavaScript 中有关 type 的问题。讲了很多关于各种 type 的 idiosyncrasies. 谈谈JavaScript types 在 JavaScript 中,有两种数据类型: Primitive Types,包括了数值,字符串,布尔值等等 Objects,
阅读全文
摘要:前言 这一章节介绍 DOM, 使用 DOM 的目的是使的网页能够变得 dynamic,使得 pages that react, that respond, that update themselves after they've been loaded. 什么是 DOM ? 结构: 以 docum
阅读全文
摘要:前言 在以前的代码中,我们使用 primitive 类型的变量和 procedural manner 来执行脚本。但是,更好的办法是 object-oriented (面向对象)的。作者说:它能让我们 better in a programming sense,并且你不再想用原来的 procedur
阅读全文
摘要:Getting functional function的特点 如何定义一个function function addscore(score,score){body;} The function does all the work of instantiating the variable for y
阅读全文
摘要:Writing real code 设计程序的步骤 The variables will tell us what we need to keep track of in our code, and the logic describes what the code has to faithfull
阅读全文
摘要:A quick dip into javascipt The way JavaScript works HTML 用一系列的 markup 来呈现整个 content 的 structure.CSS 用一系列的 rules 来设置网页的 style.JavaScript 通过statement 达到
阅读全文