专业点滴

本文深入探讨了码农晋升架构师的关键因素,并通过具体代码实例展示了如何进行数组操作、类判断、MyEclipse热部署配置、SQL查询及文件格式验证等技能。同时提供了一个关于容器内容选择的判断逻辑示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ArrayList<String> list=new ArrayList<String>();
String[] strings = new String[list.size()];
list.toArray(strings);

判断是否基础类型的包专类

return ((Class) clz.getField("TYPE").get(null)).isPrimitive();

myeclipse自动热部署:在配置tomcat时设置启动参数 -Dcom.sun.management.jmxremote=true


sql 查询7天内 每天新增的数据
select a.x ,b.y from 
				    (select date_format((curdate() - interval m.s day),'%m-%d') as x 
				    	from ( 
				    		select 0 as s union all
				    		select 1 union all
				    		select 2 union all
				    		select 3 union all
				    		select 4 union all
				    		select 5 union all
				    		select 6
				    	) m where s <= day(LAST_DAY(CURDATE()))
				    ) a
				    left join 
				    (select count(uid) as y, date_format(from_unixtime(create_time),'%m-%d') as x 
				    	from sjf_user 
				    		where create_time >=  unix_timestamp(now() - interval 7 day) 
				    		and shopid =xxx group by x
				    )  b 
				    on a.x = b.x order by a.x asc
js根据文件名后缀判断上传的文件是否正确
var str = "2323.jpg";
alert(str.match(/\.(png|jpg)$/i)!=null);
 photo: (/\.jpg$|\.jpeg$|\.gif$/i),//图片格式
左右两列,做边固定宽度 ,右边自适应高度的HTML  
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>宽度自适应布局</title>
		<style>
			div {
				height: 200px;
			}
			.left {
				float: left;
				width: 100px;
				background: #00f;
			}
			.center {
				background: #333;
				margin-left:100px;
			}
		</style>
	</head>
	<body>
		<div class="left">
			我是left
		</div>
		
		<div class="center">
			我是center
		</div>
	</body>
</html>

判断某个容器内是否有内容被选中

sel.containsNode(aNode,aPartlyContained)

转载于:https://my.oschina.net/cnlw/blog/96280

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值