Git Product home page Git Product logo

base's Introduction

base.js

依赖

  1. jquery
  2. miniui

理念

  1. 底层隔离,不直接依赖具体的框架
  2. 快速沉淀业务中常用的功能
  3. 模块可以自由组合使用
  4. 只需简单修改就可以和任何框架使用

项目中使用方式

  1. 引入需要的miniui和jquery.js以及基础文件base.js
  2. 命名base.项目名称.js作为当前项目的扩展模块,并引入到当前页面中
  3. 编写当前页面需要的js,书写方式如下:
// 全局设置
ebapBase.setUp(function() {
    // 扩展各种函数,模块,重置配置等
});
// 初始化实例
var ebapIns = ebapBase.get({
    id: '',
    key: '',
    settings: {},
    deps: [{
        id: '',
        key: ''
    }]
});
ebapIns.extend({
    search: function () {
        /*
         ebapUtils.getInstance 获取miniui实例
         获取当前主模块实例 this.getIns()
        */
    }
});
// ok 这样一个页面的功能就开发完了

base's People

Contributors

ihtml5 avatar

Watchers

 avatar  avatar

Forkers

kleen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.