0.0.3 • Published 6 years ago

bubble-less v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Bubble

Travis npm (scoped) Code Climate license

a simple JavaScript Framework

气泡

About

A JavaScript library by liqi.

See the project homepage.

Usage (用法)

字符串模板

Bubble.format(
   `字符串拼接的时候使用{0},\
     {1}自定义拼接字符串`,
     "format",
     "就可以"
  )

运行结果:
    // 字符串拼接的时候使用format,就可以自定义拼接字符串`

类数字判断

  Bubble.isNumeric("22")  // true;
  Bubble.isNumeric(22)   // true;

数字判断

   Bubble.isNumber(22)    // true
   Bubble.isNumber("22")  // false

日期类型判断

  Bubble.isDate()

类型判断

  Bubble.type(22) === "number"  // true
  Bubble.type("22") === "string"   // true
  Bubble.type([])  === "array"     // true
  Bubble.type(null)  === "null"    //true
  ...

to do list

  • 移除grunt,选择其他打包工具
  • 常用javascript 方法封装
  • css 动画技巧 (待定...)
  • DOM 操作简单处理
  • Events 事件封装
  • virtual dom
  • router 跳转

Installation

Using Bower:

Or grab the source (minified).

Usage

Basic usage is as follows:

Bubble();

For advanced usage, see the documentation.

Documentation

Start with docs/MAIN.md.

Contributing

We'll check out your contribution if you:

  • Provide a comprehensive suite of tests for your fork.
  • Have a clear and documented rationale for your changes.
  • Package these up in a pull request.

We'll do our best to help you out with any contribution issues you may have.

License

MIT. See LICENSE.txt in this directory.