cfeteam / bee.js Goto Github PK
View Code? Open in Web Editor NEW轻量级 MVVM 库
轻量级 MVVM 库
可以考虑在解析模板之前把注册的自定义标签转换成 b-tag
的形式
我用的build目录下的bee.js, IE8下无法运行,加上src下的es5-bee-shim.js就可以了。
大神望把 普通对象的遍历 代码填上。建议for能自定义 $index和$key
如有数组:
arr=[
{
name: 'name',
age: 111,
},
...
];
如何设置数组中第n个对象的name?
SCRIPT438: 对象不支持“bind”属性或方法 bee.min.js (92,3)
mixins.forEach(function(mixin) {
var prop;
for(var propKey in mixin) {
if(mixin.hasOwnProperty(propKey)) {
if ((propKey in mergeProps) && isObject(mixin[propKey])) {
//保持对传入属性的引用
//mergeProps 中的属性会被默认值扩展
prop = extend({}, this[propKey], mixin[propKey])
this[propKey] = extend(mixin[propKey], prop)
} else if (propKey in lifeCycles) {
this[propKey] = utils.afterFn(this[propKey], mixin[propKey])
} else {
this[propKey] = mixin[propKey];
}
}
}
}.bind(this))
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.