Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model 的疑问 #831

Closed
xoptimal opened this issue Apr 17, 2017 · 3 comments
Closed

model 的疑问 #831

xoptimal opened this issue Apr 17, 2017 · 3 comments

Comments

@xoptimal
Copy link

在编写 model的过程中, 发觉越来越多的 model 的代码是差不多, 只有参数不同,

但是由于 model 返回是一个对象, 我想请教下, 如果封装一个model , 让别的model 继承成呢 0.0

我记得前阵子有看到类似的提问, 我现在找不到了 (还是我记错了) .....

@xoptimal
Copy link
Author

主要涉及到 model 的优化 ~

@dicklwm
Copy link

dicklwm commented Apr 17, 2017

民工叔叔整理的文档,可以参考一下 dvajs/dva-example-user-dashboard#15

@xoptimal
Copy link
Author

@dicklwm 感谢, 就是这篇文章 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants