• 使用两个空格进行缩进。

eslint: indent

function hello (name) {console.log('hi', name)
}
  • 除需要转义的情况外,字符串统一使用单引号。

eslint: quotes

console.log('hello there')
$("<div class='box'>")
  • 不要定义未使用的变量。

eslint: no-unused-vars

function myFunction () {var result = something()   // ✗ avoid
}
  • 关键字后面加空格。

eslint: keyword-spacing

if (condition) { ... }   // ✓ ok
if(condition) { ... }    // ✗ avoid
  • 函数声明时括号与函数名间加空格。

eslint: space-before-function-paren

function name (arg) { ... }   // ✓ ok
function name(arg) { ... }    // ✗ avoidrun(function () { ... })      // ✓ ok
run(function() { ... })       // ✗ avoid
  • 始终使用 === 替代 ==。

例外: obj == null 可以用来检查 null || undefined。

eslint: eqeqeq

if (name === 'John')   // ✓ ok
if (name == 'John')    // ✗ avoid
if (name !== 'John')   // ✓ ok
if (name != 'John')    // ✗ avoid
  • 字符串拼接操作符 (Infix operators) 之间要留空格。

eslint: space-infix-ops

// ✓ ok
var x = 2
var message = 'hello, ' + name + '!'
// ✗ avoid
var x=2
var message = 'hello, '+name+'!'
  • 逗号后面加空格。

eslint: comma-spacing

// ✓ ok
var list = [1, 2, 3, 4]
function greet (name, options) { ... }
// ✗ avoid
var list = [1,2,3,4]
function greet (name,options) { ... }
  • else 关键字要与花括号保持在同一行。

eslint: brace-style

// ✓ ok
if (condition) {// ...
} else {// ...
}
// ✗ avoid
if (condition)
{// ...
}
else
{// ...
}
  • 多行 if 语句的的括号不能省

eslint: curly

// ✓ ok
if (options.quiet !== true) console.log('done')
// ✓ ok
if (options.quiet !== true) {console.log('done')
}
// ✗ avoid
if (options.quiet !== true)console.log('done')
  • 不要丢掉异常处理中err参数。

eslint: handle-callback-err

// ✓ ok
run(function (err) {if (err) throw errwindow.alert('done')
})
// ✗ avoid
run(function (err) {window.alert('done')
})
  • 使用浏览器全局变量时加上 window. 前缀。

Exceptions are: document, console and navigator.

eslint: no-undef

window.alert('hi')   // ✓ ok
  • 不允许有连续多行空行。

eslint: no-multiple-empty-lines

    // ✓ okvar value = 'hello world'console.log(value)// ✗ avoidvar value = 'hello world'console.log(value)
  • 对于三元运算符 ? 和 : 与他们所负责的代码处于同一行

eslint: operator-linebreak

// ✓ ok
var location = env.development ? 'localhost' : 'www.api.com'// ✓ ok
var location = env.development? 'localhost': 'www.api.com'// ✗ avoid
var location = env.development ?'localhost' :'www.api.com'
  • 每个 var 关键字单独声明一个变量。

eslint: one-var

// ✓ ok
var silent = true
var verbose = true// ✗ avoid
var silent = true, verbose = true// ✗ avoid
var silent = true,verbose = true
  • 条件语句中赋值语句使用括号包起来。

这样使得代码更加清晰可读,而不会认为是将条件判断语句的全等号(===)错写成了等号(=)。

eslint: no-cond-assign

// ✓ ok
while ((m = text.match(expr))) {// ...
}// ✗ avoid
while (m = text.match(expr)) {// ...
}
  • 单行代码块两边加空格。

eslint: block-spacing

 function foo () {return true}    // ✗ avoidfunction foo () { return true }  // ✓ ok
  • 对于变量和函数名统一使用驼峰命名法。

eslint: camelcase

  function my_function () { }    // ✗ avoidfunction myFunction () { }     // ✓ okvar my_var = 'hello'           // ✗ avoidvar myVar = 'hello'            // ✓ ok
  • 不允许有多余的行末逗号。

eslint: comma-dangle

var obj = {message: 'hello',   // ✗ avoid}
  • 始终将逗号置于行末。

eslint: comma-style

var obj = {foo: 'foo',bar: 'bar'   // ✗ avoid}var obj = {foo: 'foo',bar: 'bar'   // ✓ ok}
  • 点号操作符须与属性需在同一行。

eslint: dot-location

 console.log('hello')  // ✗ avoidconsole.log('hello') // ✓ ok
  • 文件末尾留一空行。

eslint: eol-last

  • 函数调用时标识符与括号间不留间隔。

eslint: func-call-spacing

console.log ('hello') // ✗ avoid
console.log('hello')  // ✓ ok
  • 键值对当中冒号与值之间要留空白。

eslint: key-spacing

var obj = { 'key' : 'value' }    // ✗ avoid
var obj = { 'key' :'value' }     // ✗ avoid
var obj = { 'key':'value' }      // ✗ avoid
var obj = { 'key': 'value' }     // ✓ ok
  • 构造函数要以大写字母开头。

eslint: new-cap

function animal () {}
var dog = new animal()    // ✗ avoidfunction Animal () {}
var dog = new Animal()    // ✓ ok
  • 无参的构造函数调用时要带上括号。

eslint: new-parens

function Animal () {}
var dog = new Animal    // ✗ avoid
var dog = new Animal()  // ✓ ok
  • 对象中定义了存值器,一定要对应的定义取值器。

eslint: accessor-pairs

var person = {set name (value) {    // ✗ avoidthis._name = value}
}var person = {set name (value) {this._name = value},get name () {         // ✓ okreturn this._name}
}
  • 子类的构造器中一定要调用 super

eslint: constructor-super

class Dog {constructor () {super()   // ✗ avoid}
}class Dog extends Mammal {constructor () {super()   // ✓ ok}
}
  • 使用数组字面量而不是构造器。

eslint: no-array-constructor

var nums = new Array(1, 2, 3)   // ✗ avoid
var nums = [1, 2, 3]            // ✓ ok
  • 避免使用 arguments.callee 和 arguments.caller。

eslint: no-caller

function foo (n) {if (n <= 0) returnarguments.callee(n - 1)   // ✗ avoid
}function foo (n) {if (n <= 0) returnfoo(n - 1)
}
  • 避免对类名重新赋值。

eslint: no-class-assign

class Dog {}
Dog = 'Fido'    // ✗ avoid
  • 避免修改使用 const 声明的变量。

eslint: no-const-assign

const score = 100
score = 125       // ✗ avoid
  • 避免使用常量作为条件表达式的条件(循环语句除外)。

eslint: no-constant-condition

if (false) {    // ✗ avoid// ...
}if (x === 0) {  // ✓ ok// ...
}while (true) {  // ✓ ok// ...
}
  • 正则中不要使用控制符。

eslint: no-control-regex

var pattern = /\x1f/    // ✗ avoid
var pattern = /\x20/    // ✓ ok
  • 不要使用 debugger。

eslint: no-debugger

function sum (a, b) {debugger      // ✗ avoidreturn a + b
}
  • 不要对变量使用 delete 操作

eslint: no-delete-var

var name
delete name     // ✗ avoid
  • 不要定义冗余的函数参数。

eslint: no-dupe-args

function sum (a, b, a) {  // ✗ avoid// ...
}function sum (a, b, c) {  // ✓ ok// ...
}
  • 类中不要定义冗余的属性。

eslint: no-dupe-class-members

class Dog {bark () {}bark () {}    // ✗ avoid
}
  • 对象字面量中不要定义重复的属性。

eslint: no-dupe-keys

var user = {name: 'Jane Doe',name: 'John Doe'    // ✗ avoid
}
  • switch 语句中不要定义重复的 case 分支。

eslint: no-duplicate-case

switch (id) {case 1:// ...case 1:     // ✗ avoid
}
  • 同一模块有多个导入时一次性写完。

eslint: no-duplicate-imports

import { myFunc1 } from 'module'
import { myFunc2 } from 'module'          // ✗ avoidimport { myFunc1, myFunc2 } from 'module' // ✓ ok
  • 正则中不要使用空字符。

eslint: no-empty-character-class

const myRegex = /^abc[]/      // ✗ avoid
const myRegex = /^abc[a-z]/   // ✓ ok
  • 不要解构空值。

eslint: no-empty-pattern

const { a: {} } = foo         // ✗ avoid
const { a: { b } } = foo      // ✓ ok
  • 不要使用 eval()。

eslint: no-eval

eval( "var result = user." + propName ) // ✗ avoid
var result = user[propName]             // ✓ ok
  • catch 中不要对错误重新赋值。

eslint: no-ex-assign

try {// ...
} catch (e) {e = 'new value'             // ✗ avoid
}try {// ...
} catch (e) {const newVal = 'new value'  // ✓ ok
}
  • 不要扩展原生对象。

eslint: no-extend-native

Object.prototype.age = 21     // ✗ avoid
  • 避免多余的函数上下文绑定。

eslint: no-extra-bind

const name = function () {getName()
}.bind(user)    // ✗ avoidconst name = function () {this.getName()
}.bind(user)    // ✓ ok
  • 避免不必要的布尔转换。

eslint: no-extra-boolean-cast

const result = true
if (!!result) {   // ✗ avoid// ...
}const result = true
if (result) {     // ✓ ok// ...
}
  • 不要使用多余的括号包裹函数。

eslint: no-extra-parens

const myFunc = (function () { })   // ✗ avoid
const myFunc = function () { }     // ✓ ok
  • switch 一定要使用 break 来将条件分支正常中断。

eslint: no-fallthrough

switch (filter) {case 1:doSomething()    // ✗ avoidcase 2:doSomethingElse()
}switch (filter) {case 1:doSomething()break           // ✓ okcase 2:doSomethingElse()
}switch (filter) {case 1:doSomething()// fallthrough  // ✓ okcase 2:doSomethingElse()
}
  • 不要省去小数点前面的0。

eslint: no-floating-decimal

const discount = .5      // ✗ avoid
const discount = 0.5     // ✓ ok
  • 避免对声明过的函数重新赋值。

eslint: no-func-assign

function myFunc () { }
myFunc = myOtherFunc    // ✗ avoid
  • 不要对全局只读对象重新赋值。

eslint: no-global-assign

window = {}     // ✗ avoid
  • 注意隐式的 eval()。

eslint: no-implied-eval

setTimeout("alert('Hello world')")                   // ✗ avoid
setTimeout(function () { alert('Hello world') })     // ✓ ok
  • 嵌套的代码块中禁止再定义函数。

eslint: no-inner-declarations

if (authenticated) {function setAuthUser () {}    // ✗ avoid
}
  • 不要向 RegExp 构造器传入非法的正则表达式。

eslint: no-invalid-regexp

RegExp('[a-z')    // ✗ avoid
RegExp('[a-z]')   // ✓ ok
  • 不要使用非法的空白符。

eslint: no-irregular-whitespace

function myFunc () /*<NBSP>*/{}   // ✗ avoid
  • 禁止使用 __iterator__。

eslint: no-iterator

Foo.prototype.__iterator__ = function () {}   // ✗ avoid
  • 外部变量不要与对象属性重名。

eslint: no-label-var

var score = 100
function game () {score: while (true) {      // ✗ avoidscore -= 10if (score > 0) continue scorebreak}
}
  • 不要使用标签语句。

eslint: no-labels

label:while (true) {break label     // ✗ avoid}
  • 不要书写不必要的嵌套代码块。

eslint: no-lone-blocks

function myFunc () {{                   // ✗ avoidmyOtherFunc()}
}function myFunc () {myOtherFunc()       // ✓ ok
}
  • 不要混合使用空格与制表符作为缩进。

eslint: no-mixed-spaces-and-tabs

  • 除了缩进,不要使用多个空格。

eslint: no-multi-spaces

const id =    1234    // ✗ avoid
const id = 1234       // ✓ ok
  • 不要使用多行字符串。

eslint: no-multi-str

const message = 'Hello \world'     // ✗ avoid
  • new 创建对象实例后需要赋值给变量。

eslint: no-new

new Character()                     // ✗ avoid
const character = new Character()   // ✓ ok
  • 禁止使用 Function 构造器。

eslint: no-new-func

var sum = new Function('a', 'b', 'return a + b')    // ✗ avoid
  • 禁止使用 Object 构造器。

eslint: no-new-object

let config = new Object()   // ✗ avoid
  • 禁止使用 new require。

eslint: no-new-require

const myModule = new require('my-module')    // ✗ avoid
  • 禁止使用 Symbol 构造器。

eslint: no-new-symbol

const foo = new Symbol('foo')   // ✗ avoid
  • 禁止使用原始包装器。

eslint: no-new-wrappers

const message = new String('hello')   // ✗ avoid
  • 不要将全局对象的属性作为函数调用。

eslint: no-obj-calls

const math = Math()   // ✗ avoid
  • 不要使用八进制字面量。

eslint: no-octal

const num = 042     // ✗ avoid
const num = '042'   // ✓ ok
  • 字符串字面量中也不要使用八进制转义字符。

eslint: no-octal-escape

const copyright = 'Copyright \251'  // ✗ avoid
  • 使用 __dirname 和 __filename 时尽量避免使用字符串拼接。

eslint: no-path-concat

const pathToFile = __dirname + '/app.js'            // ✗ avoid
const pathToFile = path.join(__dirname, 'app.js')   // ✓ ok
  • 使用 getPrototypeOf 来替代 __proto__。

eslint: no-proto

const foo = obj.__proto__               // ✗ avoid
const foo = Object.getPrototypeOf(obj)  // ✓ ok
  • 不要重复声明变量。

eslint: no-redeclare

let name = 'John'
let name = 'Jane'     // ✗ avoidlet name = 'John'
name = 'Jane'         // ✓ ok
  • 正则中避免使用多个空格。

eslint: no-regex-spaces

const regexp = /test   value/   // ✗ avoidconst regexp = /test {3}value/  // ✓ ok
const regexp = /test value/     // ✓ ok
  • return 语句中的赋值必需有括号包裹。

eslint: no-return-assign

function sum (a, b) {return result = a + b     // ✗ avoid
}function sum (a, b) {return (result = a + b)   // ✓ ok
}
  • 避免将变量赋值给自己。

eslint: no-self-assign

name = name   // ✗ avoid
  • 避免将变量与自己进行比较操作。

esint: no-self-compare

if (score === score) {}   // ✗ avoid
  • 避免使用逗号操作符。

eslint: no-sequences

if (doSomething(), !!test) {}   // ✗ avoid
  • 不要随意更改关键字的值。

eslint: no-shadow-restricted-names

let undefined = 'value'     // ✗ avoid
  • 禁止使用稀疏数组(Sparse arrays)。

eslint: no-sparse-arrays

let fruits = ['apple',, 'orange']       // ✗ avoid
  • 不要使用制表符。

eslint: no-tabs

正确使用 ES6 中的字符串模板。

eslint: no-template-curly-in-string

const message = 'Hello ${name}'   // ✗ avoid
const message = `Hello ${name}`   // ✓ ok
  • 使用 this 前请确保 super() 已调用。

eslint: no-this-before-super

class Dog extends Animal {constructor () {this.legs = 4     // ✗ avoidsuper()}
}
  • 用 throw 抛错时,抛出 Error 对象而不是字符串。

eslint: no-throw-literal

throw 'error'               // ✗ avoid
throw new Error('error')    // ✓ ok
  • 行末不留空格。

eslint: no-trailing-spaces

  • 不要使用 undefined 来初始化变量。

eslint: no-undef-init

let name = undefined    // ✗ avoidlet name
name = 'value'          // ✓ ok
  • 循环语句中注意更新循环变量。

eslint: no-unmodified-loop-condition

for (let i = 0; i < items.length; j++) {...}    // ✗ avoid
for (let i = 0; i < items.length; i++) {...}    // ✓ ok
  • 如果有更好的实现,尽量不要使用三元表达式。

eslint: no-unneeded-ternary

let score = val ? val : 0     // ✗ avoid
let score = val || 0          // ✓ ok
  • return,throw,continue 和 break 后不要再跟代码。

eslint: no-unreachable

function doSomething () {return trueconsole.log('never called')     // ✗ avoid
}
  • finally 代码块中不要再改变程序执行流程。

eslint: no-unsafe-finally

try {// ...
} catch (e) {// ...
} finally {return 42     // ✗ avoid
}
  • 关系运算符的左值不要做取反操作。

eslint: no-unsafe-negation

if (!key in obj) {}       // ✗ avoid
  • 避免不必要的 .call() 和 .apply()。

eslint: no-useless-call

sum.call(null, 1, 2, 3)   // ✗ avoid
  • 避免使用不必要的计算值作对象属性。

eslint: no-useless-computed-key

const user = { ['name']: 'John Doe' }   // ✗ avoid
const user = { name: 'John Doe' }       // ✓ ok
  • 禁止多余的构造器。

eslint: no-useless-constructor

class Car {constructor () {      // ✗ avoid}
}
  • 禁止不必要的转义。

eslint: no-useless-escape

let message = 'Hell\o'  // ✗ avoid
  • import, export 和解构操作中,禁止赋值到同名变量。

eslint: no-useless-rename

import { config as config } from './config'     // ✗ avoid
import { config } from './config'               // ✓ ok
  • 属性前面不要加空格。

eslint: no-whitespace-before-property

user .name      // ✗ avoid
user.name       // ✓ ok
  • 禁止使用 with。

eslint: no-with

with (val) {...}    // ✗ avoid
  • 对象属性换行时注意统一代码风格。

eslint: object-property-newline

const user = {name: 'Jane Doe', age: 30,username: 'jdoe86'            // ✗ avoid
}const user = { name: 'Jane Doe', age: 30, username: 'jdoe86' }    // ✓ okconst user = {name: 'Jane Doe',age: 30,username: 'jdoe86'
}                                                                 // ✓ ok
  • 代码块中避免多余留白。

eslint: padded-blocks

if (user) {// ✗ avoidconst name = getName()}if (user) {const name = getName()    // ✓ ok
}
  • 展开运算符与它的表达式间不要留空白。

eslint: rest-spread-spacing

fn(... args)    // ✗ avoid
fn(...args)     // ✓ ok
  • 遇到分号时空格要后留前不留。

eslint: semi-spacing

for (let i = 0 ;i < items.length ;i++) {...}    // ✗ avoid
for (let i = 0; i < items.length; i++) {...}    // ✓ ok
  • 代码块首尾留空格。

eslint: space-before-blocks

if (admin){...}     // ✗ avoid
if (admin) {...}    // ✓ ok
  • 圆括号间不留空格。

eslint: space-in-parens

getName( name )     // ✗ avoid
getName(name)       // ✓ ok
  • 一元运算符后面跟一个空格。

eslint: space-unary-ops

typeof!admin        // ✗ avoid
typeof !admin        // ✓ ok
  • 注释首尾留空格。

eslint: spaced-comment

//comment           // ✗ avoid
// comment          // ✓ ok/*comment*/         // ✗ avoid
/* comment */       // ✓ ok
  • 模板字符串中变量前后不加空格。

eslint: template-curly-spacing

const message = `Hello, ${ name }`    // ✗ avoid
const message = `Hello, ${name}`      // ✓ ok
  • 检查 NaN 的正确姿势是使用 isNaN()。

eslint: use-isnan

if (price === NaN) { }      // ✗ avoid
if (isNaN(price)) { }       // ✓ ok
  • 用合法的字符串跟 typeof 进行比较操作。

eslint: valid-typeof

typeof name === 'undefimed'     // ✗ avoid
typeof name === 'undefined'     // ✓ ok
  • 自调用匿名函数 (IIFEs) 使用括号包裹。

eslint: wrap-iife

const getName = function () { }()     // ✗ avoidconst getName = (function () { }())   // ✓ ok
const getName = (function () { })()   // ✓ ok
  • yield 中的 前后都要有空格。

eslint: yield-star-spacing

yield* increment()    // ✗ avoid
yield * increment()   // ✓ ok
  • 请书写优雅的条件语句(avoid Yoda conditions)。

eslint: yoda

if (42 === age) { }    // ✗ avoid
if (age === 42) { }    // ✓ ok

关于分号

  • 不要使用分号

。 (参见:1,2,3)

eslint: semi

window.alert('hi')   // ✓ ok
window.alert('hi');  // ✗ avoid
  • 不要使用 (, [, or ` 等作为一行的开始。在没有分号的情况下代码压缩后会导致报错,而坚持这一规范则可避免出错。

eslint: no-unexpected-multiline

// ✓ ok
;(function () {window.alert('ok')
}())// ✗ avoid
(function () {window.alert('ok')
}())
// ✓ ok
;[1, 2, 3].forEach(bar)// ✗ avoid
[1, 2, 3].forEach(bar)
// ✓ ok
;`hello`.indexOf('o')// ✗ avoid
`hello`.indexOf('o')
备注:上面的写法只能说聪明过头了。
  • 相比更加可读易懂的代码,那些看似投巧的写法是不可取的。

譬如:

;[1, 2, 3].forEach(bar)
建议的写法是:var nums = [1, 2, 3]
nums.forEach(bar)

Eslint Standard Style语法规则相关推荐

  1. JavaScript Standard Style(JS Standard 代码风格规则详解)

    JavaScript Standard Style 翻译: Português, Spanish, 繁體中文, 简体中文 standard 规则列表,太多不必阅读. 了解 standard 的最好方式 ...

  2. 一文详解CMakeLists文件编写语法规则详解

    作者丨zhanghm1995@blog 来源丨https://blog.csdn.net/zhanghm1995/article/details/80902807 编辑丨3D视觉工坊 基本语法规则 C ...

  3. reactjs jsx语法规则

    jsx语法规则: 1.定义虚拟DOM时,不要写引号. 2.标签中混入JS表达式时要用{}. 3.样式的类名指定不要用class,要用className. 4.内联样式,要用style={{key:va ...

  4. 良好的JavaScript编码风格(语法规则)

    编码风格 1.概述 "编程风格"(programming style)指的是编写代码的样式规则.不同的程序员,往往有不同的编程风格. 有人说,编译器的规范叫做"语法规则& ...

  5. XHTML 语法规则及 HTML/XHTML 文档类型说明(XHTML 1.0/XHTML 1.1 和 HTML 4.01/HTML 5)

    文章目录 前言 一.XHTML 语法规则 二.XHTML.HTML 文档类型说明 三.XHTML 文档类型 3.1.XHTML 1.0 过渡类型(Transitional) 3.2.XHTML 1.0 ...

  6. JSX 基本语法规则

    JSX 全称 JavaScript XML,是React 定义的一种类似于 XML 的 JS 扩展语法:JS + XML 本质是 React.createElement(component, prop ...

  7. react总结之jsx是什么,jsx语法规则

    文章目录 目录 一.jsx是什么? 二.jsx的优点 三.jsx语法规则 一.jsx是什么? jSX 代表 Javascript XML.它是 Javascript 和 Html 的融合.它是一种类似 ...

  8. 03-JSX的语法规则

    JSX的语法规则 JSX是React为了方便创建虚拟DOM创建的一门新语言,语法类似于HTML,但是稍有区别. 1. JSX基本信息 JSX全称JavaScript XML,一种类似于XML的JS扩展 ...

  9. “轻松搞定CMake”系列之CMakeLists文件编写语法规则详解

    文章目录 基本语法规则 常见CMakeLists.txt中指令剖析 从VS项目配置过程理解CMakeLists内容 CMake中常用变量汇总 常用CMakeLists文件模板 基础模板 使用OpenC ...

最新文章

  1. 基于Guava实现的文件复制
  2. 诺基亚主导Windows Phone手机市场 前景仍然堪忧
  3. PP团队圣经巨著《Application Architecture Guide2.0》14章-数据访问层
  4. Swift 3.0 on Ubuntu 15.10
  5. 信息学奥赛一本通(2044:【例5.12】回文字串)
  6. C++/C--浮点型数据的二进制表示及其内存存储形式
  7. [Android官方API阅读]___System Permissions
  8. Windows Server 2016存储空间直连技术的探秘
  9. CUDA精进之路(一):图像处理——大图像分块处理(包括求均值、最大值)
  10. [原创] 图片操作的类(ImageLibrary)-按比例缩放图片
  11. php 函数频率,这是一些使用频率比较高的php函数……
  12. Hibernate之session的管理方式
  13. python pop3_Python POP3 收取邮件
  14. 安装win10+黑苹果双系统零基础教程
  15. 【Python实战】手把手超详细教程教你Scrapy爬达盖尔社区,有彩蛋
  16. 什么是web安全测试
  17. 使用nginx在指定端口做反向代理
  18. python与tensorflow实现人脸表情识别(基于CNN)
  19. 用javascript根据当前年月获得当前季度
  20. Java项目:Springboot快递物流管理系统

热门文章

  1. 007API网关服务Zuul
  2. BLE4.0教程四 新增特征值(CC2541)
  3. ArcGIS GP应用-GP模型服务发布
  4. Android开发2:事件处理及实现简单的对话框(Toast,AlertDialog,Snackbar,TextInputLayout的使用)...
  5. url里面的参数不能带特殊字符
  6. AX2009 的EP开发要点
  7. ‘MIX_INIT_MP3’ was not declared in this scope,这是什么情况?
  8. 艺街开放平台开源计划
  9. gbk转utf-8 iconv 编码转换
  10. 指针的指针的实际使用例子