Checking a Url in Jquery/Javascript

前端 未结 6 1995
天涯浪人
天涯浪人 2020-12-03 01:58

All I need is a method that returns true if the Url is responding. Unfortunately, I\'m new to jQuery and it\'s making my attempts at writing that method rather frustrating.<

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 03:00

    In general, you should probably run your script in Firefox using the firebug plugin. It will give you the details needed to solve the issue.

    The ajax and post methods are asynchronous, so you should handle the result in a callback method.

提交回复
热议问题