search

Home  >  Q&A  >  body text

angular.js - 在jquery中如何调用angularjs中的函数?

数据请求在用jquery中的$.ajax....但是我把它写在angular中,但是我想在外面的js中在一次调用angular中数据请求$.ajax,怎么调用?

过去多啦不再A梦过去多啦不再A梦2744 days ago679

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 17:13:25

    When using Angular, you don’t need to use jQuery’s $.ajax. You can directly use the $http provided by Angular. I don’t know what you mean by the external js. Is it another controller? If it is another controller, then Just request it again directly in that controller

    reply
    0
  • Cancelreply