There are many infinite classification methods on the internet. to create a shopping website, we need many sub-classes. I don't know which one is the best? Unlimited classification which is the best?
Rt; please help us to introduce it. recursion is definitely not needed. I still have an infinite array classification method and nested set model. that's good. I will post a tutorial by the way. thank you!
Reply to discussion (solution)
Use PHP templates
I think we can use the frontend. Use php to read all mysql classification tables and store them in a memory of html.
Get it using Jquery ajax and then perform unlimited classification.
Util = {'data': ''}; Util. postJSON = function (URL) {$. ajax ({type: "POST", url: URL, dataType: "JSON", data: d, success: function (d) {return d ;}, error: function (d) {console. log (d); if (typeof e = 'function') e (d) ;}}) ;}$ (function () {Util. data = Util. postJSON ('http: // www.abc.com/api.php? C = Category & a = list ');});
Reference
Http://blog.csdn.net/zy205817/article/details/14230853
Reference
Http://blog.csdn.net/zy205817/article/details/14230853
You have used your solution. thank you.