Comments (3)
hi 其实data.js不提倡直接传递对象
主要是因为现在传递对象的话,不会有消息通知
你上面的例子里,不会和派发time被更新的消息
在处理的时候直接传对象,都放到了''上,你说的功能我会加上去的
from data.js.
@yanhaijing 既然不提倡就不要加上这个功能嘛=w= 放到了''
上之后我没办法取值是一个问题,另外一个问题是如果用户不明就里,多次用对象传参的话就要悲剧了吧-。-...所以还是期待改进版咯。
from data.js.
d.get('.time')这样是可以取到了,这个功能会解决,传对象的消息功能也会解决
from data.js.
Related Issues (8)
- Data.js在Nodejs端能做缓存模块不? HOT 1
- 是否考虑写一个跟immutable.js结合的版本? HOT 10
- 【官方】收集data.js相关资料 HOT 7
- 消息不会向上派发?
- get接口获取的深度clone数据,会获取到原型链上的数据
- 关于测试 HOT 3
- 能实现nodejs中多个线程共享数据吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data.js.