Git Product home page Git Product logo

inputassociate-v3's Introduction

InputAssociate-V3

输入联想控件V3

该版本主要修改以下2个内容:

1 Lookup控件公共方法参数问题改造

方法的第一个参数固定是$self表示控件本身,不管方法体有没有调用这个属性也都加上,目的是为了后期的扩展

2 Lookup控件的全局变量和局部变量的结构问题改造

首先,控件的模板全局定义,引入了understore开源js框架用来作为模板渲染引擎,这样控件的页面逻辑变的清晰;

其次,控件面板里面的id全局定义,具体方法体里面不再出现$("#XXX"),这样做的目的是,今后出现控件里面的ID跟实际页面ID冲突的情况比较好解决;

再次,捋清楚方法体中对象的调用以及引用,不再出现this和$(this)混乱的情况。

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.