zoukankan      html  css  js  c++  java
  • JavaScript 解析 xml 文件 如 rss订阅

    jFeed 是一个通用的 RSS/ATOM 解析器jQuery插件

    jFeed 支持 RSS 0.91, 0.92, 1.0, 2.0 和 Atom 1.0 等格式。

    使用方法:

    jQuery.getFeed(options);
       
       参数:
       
       * url: the feed URL (required).
       * data: data to be sent to the server. See jQuery.ajax data property.
       * success: a function to be called if the request succeeds.
         The function gets passed one argument: the JFeed object.
       
       使用示例:
       
       jQuery.getFeed({
           url: 'rss.xml',
           success: function(feed) {
               alert(feed.title);
           }
       });

    附原文件实例地址:http://download.csdn.net/source/2898662

  • 相关阅读:
    67 个拯救前端开发者的工具、库和资源
    js常用的工具函数
    npm快捷键
    给bootstrap table设置行列单元格样式
    script标签中type为"text/x-template"或"text/html"
    【转载】Ogre3d 2.1 源码编译安装教程
    【转载】OGRE 2.1 Windows 编译
    【转载】DXUT11框架浅析(4)--调试相关
    【转载】GitHub详解
    【转载】3D/2D中的D3DXMatrixPerspectiveFovLH和D3DXMatrixOrthoLH投影函数详解
  • 原文地址:https://www.cnblogs.com/huozhicheng/p/2533165.html
Copyright © 2011-2022 走看看