NetEaseWD / NEJ

跨平台WEB前端开发框架
Other
55 stars 13 forks source link

chain API #2

Closed leeluolee closed 8 years ago

leeluolee commented 11 years ago

API描述

由于还未最终定稿,大家可以参与讨论下, 并发表下自己看法。

nej 引入部分

所有 第一个参数为节点类型的,都被引入了chainable API , 具体为

class相关

"$addClassName", "$delClassName", "$hasClassName", "$replaceClassName", "_$toggle"

css相关

"$setStyle", "$getStyle","$css3d", "$style", "_$offset",

动画 特效 UI

"$fixed", "$effect", "$fade", "$focus", "$highlight", "$hover", "$page", "$placeholder", "$tab", "$wrapInline"

属性相关

"$attr", "$dataset"

节点

"$remove", "$removeByEC", "_$getScrollViewPort"

杂项

"$dom2xml","$bindClearAction","$bindCopyAction", "$counter"

event相关

"$addEvent", "$clearEvent", "$delEvent", "$dispatchEvent"

以上这些nej主页都有详细介绍不再赘述

新增部分

宗旨就是有理有据,不在破坏原有API调用的前提下新增API(或增强), 所有操作都从

基础部分

genify commented 8 years ago

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