This article mainly introduces how to obtain the product category of a certain treasure in nodejs. it is very simple and practical. you can directly open the console in the background and stick the code to it to run it, if you have any need, refer. I have nothing to worry about. I studied e-commerce websites. my friends opened a store and saw a wide variety of products. So I did a little research.
AJAX is used to obtain the product category. because of the need to log on to the product, I am not busy. The simplest way is to log on to the console and directly open the console and paste the code to run it. Hey, all categories run to CAT. data.
Cainiao trainer, please advise.
Var CAT = {// [{id: '', name:'', data: [{id: '', name:'', data: [{id: '', name:''}] },{},...]}, {}...] data: [], url: function () {return 'http: // upload.taobao.com/auction/json/reload_cats.htm? T = '+ Math. random () ;}, init: function () {var url = CAT. url (), post_data = 'path = all'; CAT. ajax (url, post_data, CAT. first_r) ;}, first_r: function (data) {var rs = data [0] ['data'], first_l, first_d, I, j, second_id, second_d, func; for (I = 0; I
The above is all the content of this article. I hope you will like it.