mytharcher / jslib Goto Github PK
View Code? Open in Web Editor NEWA smart JavaScript library
Home Page: http://elf.js.org
A smart JavaScript library
Home Page: http://elf.js.org
可以将参数封装到HTTP请求的header块中。
onEnterFrame
onFirstFrame
onStart
onComplete
……等。
需要同时检查其他样式的设置和获取,添加所有样式设置和获取的单测用例。
如题,需要对js.dom.Event
类增加once()
静态方法。用例:
js.dom.Event.once(element, type, handler[, delegate]);
只执行一次后自动移除监听。
URL中经常会有需要计算相对路径的时候,统一用一个类来处理比较合适。
当用户自定义HTTP状态码来处理返回结果时,不再使用默认的onsuccess
和onfailure
处理。使响应状态更加有含义,整个设计可以扩展的更加RESTful。
例如:
js.net.Ajax.request({
url: 'some url',
on200: function () {},
on401: function () {},
on404: function () {}
// ...
});
如题,bug需要修复。
RT
从js.dom.Relation.test()
方法中暴露,当要检测一个元素的标签名是否匹配时,无法通过内部的正则完成。
expected:
js.dom.Selector.match(div, 'div'); // true
js.dom.Selector.match(span, 'div'); // false
now:
js.dom.Selector.match(div, 'div'); // true
js.dom.Selector.match(span, 'div'); // true -> BUG
由于dom
包中动画控制的类叫Tween
,且transform
方法以及在之前的版本中移除,所以最好这里也改为tween
。
即在请求头中添加setHeader('WWW-Authenticate', 'Basic realm="need login"')
类似内容,或使用http://user:pass@host/path
的方式添加都URL中。
调用时:
js.net.Ajax.request({
url: 'http://user:pass@host/path',
// ...
});
或:
js.net.Ajax.request({
url: 'someurl',
auth: 'user:pass',
// ...
});
auth
参数中的值优先于url
中的配置。
rt
大多数情况下,当处理位置/盒子模型等相关情形时前端开发者会习惯用类css的属性表达,例如left/top等。
但现在只提供了{x, y}坐标方式描述的返回值,希望改为或加上top/left。
由于非IE浏览器还未实现鼠标进入/离开的事件接口,而其他JavaScript库比如jQuery早已实现。这两个事件在DOM开发中会非常有用,可以参考其他库的实现来进行支持。
准备将API文档切换至jsduck生成,即sencha/Ext4的文档工具。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.