数组 list互转
数组 list互转
String str[]= list.toArray(newString[]{});
List list= java.util.Arrays.asList(String str[]);
数组 list互转
String str[]= list.toArray(newString[]{});
List list= java.util.Arrays.asList(String str[]);
远程桌面卡顿,调用远程任务管理器或注销一些用户,可以使用Ctrl+Alt+End
按 Ctrl+Alt+Del 始终可转到本地计算机的桌面。如果需要向远程计算机发送 Ctrl+Alt+Del,则必须使用 Ctrl+Alt+End。
检测开始日期 结束日期 是否存在交叉where 1=1 "+tj+" and ((starttime>="+starttime+" and starttime<="+endtime+") " +"or (endtime>="+starttime+" and endtime<="+endtime+" ) or (starttime>="+starttime+" and endtime<="+endtime+" ) " +"or (starttime<="+starttime+" and endtime>="+endtime+" ))";
mybatis 查询 xml list参数;
<select id="getByIds" resultType="string" parameterType="java.util.List">
SELECT a.FENLEINAME from Tab a where a.id in (select b.pid from TB
b where b.id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
)
</select>
远程调用其它站点并设置cookie:
参考jsvar domainArray =[
{site:'g.com',action:'/b.do?c'}
,{site:'www.baidu.com',action:'/a.do?b'}
];functioncrossDominCookieInit(){
$.each(domainArray,function(key, obj) {//alert('index in arr:' + key + ', corresponding value:' + val); $.ajax({
type :"post",
async:true,
url :"domincookie/setCookie?t="+obj.site+obj.action,
crossDomain:true,
dataType :"jsonp",//数据类型为jsonp jsonp: "jsonpCallback",//服务端用于接收callback调用的function名的参数 success : function(data){
},
error:function(){
}
});
});
}//调用远程cookie设置方法,让其它站点设置本系统登陆的账号信息 crossDominCookieInit();