所以这个问题就是看看我们有什么,或者不同的人会如何处理这样的事情。我在一家公司工作,我们已经开始为我们的前端开发创建一种更模块化的驱动方法。例如,我们有一个表格模块,其中一些HTML、一些CSS和一些JS专门属于该模块。
我们想要做的是创建像bootstrap这样的东西:http://getbootstrap.com/customize/
对这样做的最好方法有什么想法吗?
感谢您的任何想法或想法,只是好奇!
发布于 2015-05-07 08:38:56
在这种情况下,您可以有一个最终文件,您可以在其中附加您想要的功能。在添加了所有需要的功能后,现在可以下载最终文件,其中包含您想要的所有功能。
<?php
//the final file where you want to add your selected features/
$finalFile = 'final.css';
//the feature you wanted to add.
$feature = 'feature1.css';
//append the feature to the finale file.
file_put_contents($finalFile, $feature, FILE_APPEND | LOCK_EX);
?>现在可以使用复选框来实现你想要的功能。
https://stackoverflow.com/questions/30089869
复制相似问题