`
文章列表
    The next group of methods has to do with rounding decimal values into integers. Three methods — Math.ceil(),  Math.floor(), and  Math.round() — handle rounding in different ways as described here:    The  Math.ceil() method represents the ceiling function, which always rounds numbers up to the ...
         
<td align="center" valign="middle"> <img src="images/checkBox.png"/> </td>     其中 align="center"  为水平居中 ;            valign="middle"  为垂直居中,这个属性有时不见得好用。       也可以通过样式设置:     <td style="text-align: center;" ...
 
         
   
              
     
 
运行cmd /k reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe & start explorer.exe   Ok!

Java 自定义异常类

    博客分类:
  • Java
public class ExceptionTest { public static void main(String [] args){ int result; Test test = new Test(); try{ //result = test.devide(10, 0); result = test.devide(10, -2); //result = test.devide(10, 2); }catch (DevidedByMinusException e) { System.out.println(e.get ...

Java趣味短码

    博客分类:
  • Java
原文:http://www.ituring.com.cn/article/27186#jtss-tqq   今天跟公司的童鞋聊天的时候,谈到了关于短码和代码的精简的方式,所以整理出来。 需求很简单。 首先定义一个类 classItem{publicint key;publicint l;public
        var ua = navigator.userAgent.toLowerCase();        if(ua.match(/android/i)=="android"){            var android = ua.split(/android/i)[1];            var version = trim(android.split("\.")[0]);            if(version >= 4){                 /*目的是解决Android 4.x输入框的问题(其实An ...
Global site tag (gtag.js) - Google Analytics