test.js 712 B

1234567891011121314151617181920212223242526272829303132
  1. // recommend('123', 'WEB')
  2. // .then(res => {
  3. // console.log(res);
  4. // })
  5. // .catch(e => {
  6. // console.log(e);
  7. // })
  8. // detail(`https://www.youtube.com/watch?v=vXNKWndeG5Y`, '1111', 'WEB')
  9. // .then(res => {
  10. // console.log(res);
  11. // })
  12. // .catch(e => {
  13. // console.log(e);
  14. // })
  15. query = "adele"
  16. search(query, null, "", "WEB")
  17. .then(res => {
  18. console.log(res);
  19. // search(query, res["data"]["next"], "", "WEB")
  20. // .then(res => {
  21. // console.log(res);
  22. // })
  23. // .catch(e => {
  24. // console.log(e);
  25. // })
  26. })
  27. .catch(e => {
  28. console.log(e);
  29. })