码迷,mamicode.com
首页 >  
搜索关键字:annotation-config co    ( 7094个结果
使用Xpath对XML进行模糊查询
如果要对XML文件进行模糊查找的话是一个比较麻烦的事情,Xpath表达式中没有像文件系统中的“*”或"?" 或者有像SQL表达式中的"%",这样的模糊查找的通配符。但是还好,在Xpath的函数中提供了像contains和match这样的函数。contains是一个字符串查找函数 语法是:fn:co....
分类:其他好文   时间:2014-10-25 15:44:13    阅读次数:150
将类数组对象(array-like object)转化为数组对象(Array object)
用法:Array.prototype.slice.call(array-like object)// 创建一个类数组对象var alo = {0:"a", 1:"b",2:"c", length:3};// 转化var arr = Array.prototype.slice.call(alo);co...
分类:编程语言   时间:2014-10-25 11:47:31    阅读次数:179
C# XMLDocument
今天开发一个WPF模块需要本地化保存一些用户设置,鉴于数据量不大,用XML。 (要是再小的话可以用Resources 和 Settings)。清晰简短教程移步:http://bdk82924.iteye.com/blog/564353代码如下:using System;using System.Co...
分类:Windows程序   时间:2014-10-24 22:10:32    阅读次数:410
[SPOJ VLATTICE]Visible Lattice Points 数论 莫比乌斯反演
7001. Visible Lattice Points Problem code: VLATTICE Consider a N*N*N lattice. One corner is at (0,0,0) and the opposite one is at (N,N,N). How many lattice points are visible from co...
分类:其他好文   时间:2014-10-24 11:05:49    阅读次数:294
c++ ifstream
1.判断文件是否打开if(a.fail())if(!a.good())if(!a)上面3个等价但上面的无法检测到 : 以不合适的文件模式打开文件失败a.is_open()可以检测到这个错误所以推荐使用 if(!a.is_open())2. if( !fin ) { co...
分类:编程语言   时间:2014-10-24 10:45:06    阅读次数:180
制作一个主页背景图不动,但网页可以向下滚动浏览内容
background-attachment-- 定义背景图片随滚动轴的移动方式取值: scroll | fixed | inheritscroll: 随着页面的滚动轴背景图片将移动fixed: 随着页面的滚动轴背景图片不会移动inherit: 继承引用网址:http://www.dreamdu.co...
分类:Web程序   时间:2014-10-24 10:29:51    阅读次数:192
oracle空值问题
在我们对查询结果进行处理的时候,(比如:sal*13+comm表达式),因为某些员工可能没有奖金,只有13月薪水,这样我们查处的结果会不正确,结果只显示既有奖金有又13薪水的员工,其他的没有,解决办法:可以用函数nvl(查询的字段,当查询结果为空值时的字段),select sal*13+nvl(co...
分类:数据库   时间:2014-10-24 09:08:52    阅读次数:192
java集合浅析
参照互联网 - 博客园 -http://www.blogjava.net/EvanLiu/archive/2007/11/12/159884.html。Question:1.Q:大致讲解java集合的体系结构A:List、Set、Map是这个集合体系中最主要的三个接口。其中List和Set继承自Co...
分类:编程语言   时间:2014-10-23 22:15:16    阅读次数:193
Codeforces Round #272 (Div. 2) C. Dreamoon and Sums (数学 思维)
题目链接这个题取模的时候挺坑的!!!题意:div(x , b) / mod(x , b) = k( 1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define LL __int64 9 co...
分类:其他好文   时间:2014-10-23 20:33:28    阅读次数:234
划分树 [POJ 2104] K-th Number
K-th NumberTime Limit:20000MSMemory Limit:65536KTotal Submissions:38225Accepted:12417Case Time Limit:2000MSDescriptionYou are working for Macrohard co...
分类:其他好文   时间:2014-10-23 16:06:46    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!