avatar
JavaScript

正则的扩展

在 ES5 中,RegExp构造函数的参数有两种情况。第一种情况是,参数是字符串,这时第二个参数表示正则表达式的修饰符(flag)。...

807    0    3 years ago



avatar
JavaScript

字符串的新增方法

ES5 提供String.fromCharCode()方法,用于从 Unicode 码点返回对应字符,但是这个方法不能识别码点大于0xFFFF的字符。...

800    0    3 years ago



avatar
JavaScript

字符串的扩展

本章介绍 ES6 对字符串的改造和增强,下一章介绍字符串对象的新增方法。...

813    0    3 years ago



avatar
JavaScript

变量的解构赋值

NoneES6 允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构(Destructuring)。...

854    0    3 years ago



avatar
JavaScript

let 和 const 命令

ES6 新增了let命令,用来声明变量。它的用法类似于var,但是所声明的变量,只在let命令所在的代码块内有效。...

883    0    3 years ago



avatar
JavaScript

ECMAScript 6简介

ECMAScript 6.0(以下简称 ES6)是 JavaScript 语言的下一代标准,已经在 2015 年 6 月正式发布了。它的目标,是使得 JavaScript 语言可以用来...

968    0    3 years ago



avatar
JavaScript React

A React-based Blog Example

An example of a mongoDB, expressJS backended Reactjs based blog...

5582    0    3 years ago



avatar
Python Django

Create a Django Pagination Module

With this customizable pagination, you only need to setup once by passing three parameters on the ba...

945    0    3 years ago



avatar
JavaScript Nodejs

module.exports vs exports

As I mentioned earlier, `module.exports` and `exports` point to the same null object `{}` and we cal...

843    0    4 years ago



avatar
Apache Htaccess

Using .htaccess Rewrite Rules

The Apache module `mod_rewrite` allows you to rewrite URL requests that come...

866    0    4 years ago



avatar
Python Django

DRF Serializers

Several methods of serializing methods in Django...

1062    0    4 years ago



avatar
Python Django Subdomain

Dynamic Subdomains In Django

How to Handle Multiple (and Dynamic) Domains/Subdomains with Single Django App...

995    0    4 years ago