乙巳🐍年

acc8226 的博客

JavaScript 对象表示法(JSON)是用于将结构化数据表示为 JavaScript 对象的标准格式,通常用于在网站上表示和传输数据

什么是 JSON

JSON 是一种按照JavaScript对象语法的数据格式,这是 Douglas Crockford 推广的。虽然它是基于 JavaScript 语法,但它独立于JavaScript,这也是为什么许多程序环境能够读取(解读)和生成 JSON。

JSON 可以作为一个对象或者字符串存在,前者用于解读 JSON 中的数据,后者用于通过网络传输 JSON 数据。 这不是一个大事件——JavaScript 提供一个全局的 可访问的 JSON 对象来对这两种数据进行转换。

一个 JSON 对象可以被储存在它自己的文件中,这基本上就是一个文本文件,扩展名为 .json, 还有 [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type “MIME type: A MIME type (now properly called “media type”, but also sometimes “content type”) is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).”) 用于 application/json.

阅读全文 »

安装 ts 语言最简单的方式使用 npm 工具。使用命令 npm install -g typescript 来全局安装 ts。

当安装成功后,可以 tsc -vtsc --version 进行验证。

ts 是 js 类型的超集。

基础数据类型

阅读全文 »

基础软件使用

zip

打包 rm -rf html.zip && zip -q -r html.zip *

tar

打包 rm -rf html.tar.gz && tar czvf html.tar.gz *

拓展软件使用

rss 订阅

FreshRSS a free, self-hostable feeds aggregator

阅读全文 »
0%