goto.js 794 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // axios
  2. // axios.get('http://172.105.205.52:8000/courses?tag_string=(2)')
  3. // .then(function (response) {
  4. // console.log(response);
  5. // });
  6. // axios.post('/user', {
  7. // firstName: 'Fred',
  8. // lastName: 'Flintstone'
  9. // }).then(function (response) {
  10. // console.log(response);
  11. // })
  12. // jquery
  13. $(document).ready(function(){
  14. $.ajax('http://172.105.205.52:8000/tags', {
  15. type: 'GET', // http method
  16. headers: {'Access-Control-Allow-Origin': '*'},
  17. success: function (res) {
  18. var a = res;
  19. console.log(res);
  20. },
  21. error: function (err) {
  22. console.log(err);
  23. }
  24. });
  25. // $.get("date-time.php", function(data){
  26. // console.log(res);
  27. // });
  28. $(".slider1").slick({
  29. dots:true,
  30. dotsClass:'slick-dots',
  31. speed:1000,
  32. });