XmlHttpRequest与jQuery

编程入门 行业动态 更新时间:2024-10-11 01:18:33
本文介绍了XmlHttpRequest与jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对javascript和jQuery都是陌生的.我正在开发一个页面,其中已从代码生成页面的整个html.在页面中,有一个用于发布消息的文本框,并且可以为每个消息发布评论.现在,当我发布新评论或删除评论时,我需要进行数据库调用. 我知道有两种方法可以从js中完成

I am new to both javascript and jQuery. I am developing a page in which I have generated page's whole html from code. In the page, there in a textbox to post messages and for each message comments can be posted. Now when I post a new comment or delete a comment I need to do database call. I know 2 method to do it from js

  • 执行xmlhttprequest
  • 从jQuery进行ajax调用.
  • 有人可以建议我哪种方法适合我的需求吗?

    Can anybody suggest me which method will suite my requirement?

    推荐答案

    每个浏览器都有自己的XmlHttpRequest实现.使用框架可以最大程度地减少跨浏览器差异和怪癖的麻烦,特别是如果您是新手.

    Each browser has their own implementation of XmlHttpRequest. Using a framework will minimize the headache of cross-browser differences and quirks, especially if you are very new.

    更多推荐

    XmlHttpRequest与jQuery

    本文发布于:2023-11-24 19:42:32,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1626560.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:XmlHttpRequest   jQuery

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!