熊D博客
熊D博客

SIMPLE BUT NOT SIMPLE.


  • Categories

  • Archives

  • Tags

  • About

  • Search
close

[笔记] 当在 Vue 中不得不用全局样式时...

Posted on March 10th 2018   |   In Note
有时候基于 Vue 的单文件组件开发项目时, 不得不使用全局样式, 这时有一些地方需要注意.
Read more »

深度定制团队自己的 Vue template

Posted on January 7th 2018   |   In JavaScript

众所周知,使用 vue-cli 可以快速初始化一个基于 Vue.js 的项目,官方提供了 webpack、pwa、browserify-simple 等常用 templates。

当开发一个独立项目的时候,使用官方提供的 template 确实非常方便,省去了繁琐的依赖安装配置、webpack 配置,甚至连项目结构也不用多加考虑。

但是,当我们需要开发多个系统,每个系统相对独立但又有一些配置、依赖或逻辑相互通用的时候(例如集群的多后台系统),每次使用官方提供的 template 初始化项目之后,都需要进一步调整(添加依赖、修改配置、增加通用组件等等),这显然是十分麻烦的。
本着懒惰是第一生产力的初衷,我们需要定制一份自己的 template,以便我们…额…偷懒哈~

Read more »

VueJS 开发常见问题集锦

Posted on July 13th 2017   |   In JavaScript
Read more »

ES6 常用新特性讲解

Posted on April 25th 2017   |   In JavaScript

!干货长文预警!

上周在公司组织了 ES6 新特性的分享会,主要讲了工程化简介、ES6 的新特性与前端常用的几种构建工具的配合使用。ES6 这块主要讲了一些我们平时开发中经常会用到的新特性。在这里整理一下关于 ES6 的部分。

Read more »

在 JavaScript 中函数为什么被称作一等公民?

Posted on April 6th 2017   |   In JavaScript

如果读过MDN的话,应该会注意到MDN上对JavaScript的定义部分是这样写的:

JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as node.js and Apache CouchDB. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. Read more about JavaScript.

开篇定义中便提到了函数优先(First-class Function),也即通常所说的JavaScript中的一等公民Funciton。
那问题来了:这个一等公民为什么会被称作一等公民呢?哪些特征让函数在JavaScript中成为了一等公民?

Read more »
123
熊D01001(BearD01001)

熊D01001(BearD01001)

写点东西,看着自己慢慢成长也蛮有趣的。

15 posts
4 categories
35 tags
RSS
GitHub Instagram 微博 知乎
Creative Commons
© 2015 - 2018 熊D01001(BearD01001)
Powered by Hexo
Theme - NexTD