Nodejs is used to obtain the product category of a certain treasure _ node. js

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.