摘要: http://www.cocoachina.com/bbs/ mac 阅读全文
posted @ 2012-07-10 23:20 简单--生活 阅读(185) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> $(document).ready(function(){ $.ajax({ url:"City.xml", dataType:"xml", success:function(data){ $(data).find("province").each(function(){ var t = $(this).attr("name");//this-> alert(t) //$("#DropProvince&q 阅读全文
posted @ 2012-07-10 23:19 简单--生活 阅读(226) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="utf-8"?><article> <item> <title size="1">title1</title> <content>content1</content> <pubdate>2009-10-11</pubdate> </item> <item> <title size="1">title2</ti 阅读全文
posted @ 2012-07-10 22:50 简单--生活 阅读(458) 评论(0) 推荐(0)
摘要: http://cn2.php.net/manual/zh/function.xml-parse.phpxml_parse(PHP 4, PHP 5)xml_parse — 开始解析一个 XML 文档Report a bug 说明int xml_parse ( resource $parser , string $data [, bool $is_final ] )xml_parse() 解析 XML 文档。已配置事件的处理器根据需要被无限次调用。Report a bug 参数parser一个指向将要使用的 XML 解析器的指针data需要解析的数据集。您可以多次对新的数据调用 xml_pars 阅读全文
posted @ 2012-07-10 20:29 简单--生活 阅读(3599) 评论(0) 推荐(0)
摘要: // 6 解决输入字符造成死循环的情况/*#include <iostream>#include <string>using namespace std;//声明一个链表的结构体class book{public: int num; float price; book *next;};book *head = NULL; //声明一个头指针,默认设置为空//声明一个函数,用于来判断是否为有效的数值bool check(string str){ for(int i=0; i<str.length(); i++) { if((str[i] > '9 阅读全文
posted @ 2012-07-10 00:33 简单--生活 阅读(655) 评论(0) 推荐(0)
简单--生活(CSDN)