js生成xml文件及js读取xml文件,获得xml节点子节点的个数(同Extjs中树获得子结点个数)

摘要: 1.先说js读取xml文件吧://var szXml= OCX.GetXmlInfo(); ///得到xml的串Demo:var szXml = "<?xml version=\"1.0\"?><Root><PreviewInfo><PreviewType>1</PreviewType></PreviewInfo>" + "<NormalGroup><CountNum>4</CountNum>"+ "<LaneI 阅读全文
posted @ 2012-03-13 20:30 java课程设计例子 阅读(707) 评论(0) 推荐(0)

sql语句:union

摘要: sql语句中,join,left join中,是将两个或多个表横向连接,而有时,我们需要将几个表或1个表纵向连接,甚至是连接自身,就比如,某些数据库脚本特别不合理的时候,但我们又不能说啥 。。。。郁闷 。。。。最简单的示例:select * from a union select * from b 当然,要求a和b的列是一样的。。然后db会把两个表纵向连接,并去掉重复的行。。。用union all 比单用union的效率要高一些。。。来看一个比较实用的:select * from test1 union allselect * from test2 t2where not exists( .. 阅读全文
posted @ 2012-03-13 19:54 java课程设计例子 阅读(203) 评论(0) 推荐(0)

c++与c混编

摘要: 在用C++的项目源码中,经常会不可避免的会看到下面的代码:123456789#ifdef __cplusplusextern "C" {#endif/*...*/#ifdef __cplusplus}#endif它到底有什么用呢,你知道吗?而且这样的问题经常会出现在面试or笔试中。下面我就从以下几个方面来介绍它:·1、#ifdef_cplusplus/#endif _cplusplus及发散·2、extern"C"·2.1、extern关键字·2.2、"C"·2.3、小结extern& 阅读全文
posted @ 2012-03-13 15:47 java课程设计例子 阅读(267) 评论(0) 推荐(0)