First of all, I have no Web development experience. Please help me. First of all, I learned that KissyWaterfall does not understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what it should be in Waterfall... first of all, I have no Web development experience. Please help me.
First, I learned that Kissy Waterfall
I don't understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what value should be passed to Jquery in Waterfall?
The key code is as follows:
S. ajax ({data: {'method': 'flickr. photos. search', 'api _ key': '5d93c2e473e39e9307e86d4a01381266 ', 'tags': 'Rose', 'page': nextpage, 'per _ page': 20, 'format ': 'json'}, url: 'http: // api.flickr.com/services/rest/', dataType: "jsonp", jsonp: "jsoncallback", success: function (d) {// if the data is incorrect, end if (d. stat! = 'OK') {alert ('Load data error! '); End (); return;} // if the last page is reached, load nextpage = d. photos. page + 1; if (nextpage> d. photos. pages) {end (); return ;}
I even checked the flick json for this purpose. Because it was just getting in touch, I had doubts in many places and the problem was not solved yet.
I don't know if you have any better ideas. Is there a simple way to help you achieve this?
It is best to modify several parameters. (After all, 1 is a newbie, and 2 does not have so much energy to study. I hope you will be considerate)
The problem has been disabled. cause:
Reply content:
First of all, I have no Web development experience. Please help me.
First, I learned that Kissy Waterfall
I don't understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what value should be passed to Jquery in Waterfall?
The key code is as follows:
S. ajax ({data: {'method': 'flickr. photos. search', 'api _ key': '5d93c2e473e39e9307e86d4a01381266 ', 'tags': 'Rose', 'page': nextpage, 'per _ page': 20, 'format ': 'json'}, url: 'http: // api.flickr.com/services/rest/', dataType: "jsonp", jsonp: "jsoncallback", success: function (d) {// if the data is incorrect, end if (d. stat! = 'OK') {alert ('Load data error! '); End (); return;} // if the last page is reached, load nextpage = d. photos. page + 1; if (nextpage> d. photos. pages) {end (); return ;}
I even checked the flick json for this purpose. Because it was just getting in touch, I had doubts in many places and the problem was not solved yet.
I don't know if you have any better ideas. Is there a simple way to help you achieve this?
It is best to modify several parameters. (After all, 1 is a newbie, and 2 does not have so much energy to study. I hope you will be considerate)