Code Monkey home page Code Monkey logo

Comments (3)

leeluolee avatar leeluolee commented on July 23, 2024

昨天 @genify 你没来 我先简单实现了 风格2 . 只是对可以链式的接口做了转移(如 _$addClassName等,细节都还没做,切换到方案1也方便)和简单扩展方式,对于上面提到的两个问题:

  1. 首先nej是个框架,接口的限制在这里不是很明显,(Mootools、Prototype都暴露了百来个全局, 当然这个不是典型案例, 已经与时代脱节)。
  2. 两份包装类(_Node、_NodeList),某些方法是可以共生的,我暂时是利用跟Mootools类似的方式,留个hook,在_Node扩展时,给_NodeList也做一份,这之中当然要有一些简单的约定

from nej.

leeluolee avatar leeluolee commented on July 23, 2024

选用 方案1

from nej.

genify avatar genify commented on July 23, 2024

This issue was moved to NEYouFan/nej-framework#1

from nej.

Related Issues (6)

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.