库与框架,这两个是一个意思还是有不一样的理解呢???
库与框架,这两个是一个意思还是有不一样的理解呢???
jquery css JavaScript angularjs
goyukai
9 years, 12 months ago
Answers
比如你代码的布局是这样的:
/login.php (Controller,调用Model,输出View)
/include/functions.php (Model,系统函数)
/include/phpmailer.php (邮件发送库)
/include/htmlpurifier.php (XSS过滤库)
/themes/default/login.php (View)
/themes/default/functions.php (Model,主题函数)
你可以把整个代码布局看做是一个框架.而include下的phpmailer和htmlpurifier则是两个工具库,你把它们包含进来就可以使用.
MS-08
answered 9 years, 12 months ago
teamica
answered 9 years, 12 months ago
http://stackoverflow.com/questions/148747/what-is-the-difference-betwe...
里面有个答案很有意思:
框架调用你,你调用库
nicoson
answered 9 years, 12 months ago