摘要:1、通过访问接口返回一组json格式的数据。例子如下:Stringaa = "{"result":"1","roleinfo":[{"gender":"f","name":"%E4%B8%80%E5%8C%BA%E7%AC%AC%E4%B8%80","grade":5,"profession":"%E8%90%9D%E8%8E%89","createDate":&qu
阅读全文
摘要:String s = String.valueOf(4.25);int m = s.indexOf('.');String money = s.substring(0, m + 2);结果:money=4.2;
阅读全文
摘要:1、在页面中添加两个div:<div class="right_bottom01"><a href="#"></a></div><div class="right_bottom02"><a href="#"></a></div>2、在样式中进行设置:(图片路径要注意)<style type="text/css">.right_bottom01 { width:95px; height:17
阅读全文
摘要:<body style="filter:Gray">
阅读全文
摘要:1、数据库所占空间SELECT CONCAT(TRUNCATE(SUM(data_length)/1024/1024,2),'MB') AS data_size,CONCAT(TRUNCATE(SUM(max_data_length)/1024/1024,2),'MB') AS max_data_size,CONCAT(TRUNCATE(SUM(data_free)/1024/1024,2),'MB') AS data_free,CONCAT(TRUNCATE(SUM(index_length)/1024/1024,2),'MB'
阅读全文
摘要:1、以name为选择对象时:<input name="password" type="password" class="person_txt"/>$("input[name=password]").bind('blur',function(){} //失去焦点时触发$("input[name=password]").bind('focus',function(){} //进入焦点时触发2、以id为选择对象时:<input id="pas
阅读全文
摘要:<div style="float:left;margin-left:7px;display:inline; padding-top:7px"><font color="red">充值总额:<label id="czze">0</label>元</font></div><div style="padding-top:5px;float:right;padding-right:4px;"><input name="&q
阅读全文
摘要:import java.util.Calendar;String idcard = request.getParameter("idcard");//身份证String chkidcard = idcard.toString().substring(6,10);//截取年Calendar cal = Calendar.getInstance();int year = cal.get(Calendar.YEAR);String fcm = "0";if(Integer.parseInt(idcard)+18>=year){fcm="1&qu
阅读全文