• 进度条


    http://www.blogjava.net/lcs/archive/2007/11/01/157474.html

     private void drawLine(int x, int y, Graphics g)
        {
            g.setColor(Color.red);
            g.drawLine(0, y, x, y);
            g.drawLine(x, y, x + 7, y - 7);
            g.drawLine(x + 7, y - 7, x + 14, y);
            g.drawLine(x + 14, y, 980, y);
        }

    SwingUtilities.invokeLater(newRunnable(){publicvoid run(){
    
           box.showPopup();}

    }

     $(function(){
        
           $("#filterVal").keyup(function(){
            
           $("#test tr").hide().filter(":contains('"+( $("#filterVal").val() )+"')").show();
        }).keyup();
      })

    function GetRequest() {
           var url = location.search;
           var theRequest = new Object();
           if (url.indexOf("?") != -1) {
              var str = url.substr(1);
              strs = str.split("&");
              for(var i = 0; i < strs.length; i ++) {
                 theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
              }
           }
           return theRequest;
        }
        function PageLoad(){
            var Request = new Object();
            Request = GetRequest();
            if(null == Request['inputTxt'] || "undefined"== Request['inputTxt'])
                document.getElementById("txtShow").value = "";
            else
                document.getElementById("txtShow").value = Request['inputTxt'];
        }

    int i,j,sum=0;
            for(i=1;i<1000;i++){
                sum = 0;
                for(j = 1;j <=i/2;j++){
                    if(i%j==0){
                        sum += j;
                    }
                }
                if(sum == i){
                    System.out.print(i+" ");
                }
            }

    public class Singleton {

        private static Singleton uniqueInstance = null;

     

        private Singleton() {

           // Exists only to defeat instantiation.

        }

     

        public static Singleton getInstance() {

           if (uniqueInstance == null) {

               uniqueInstance = new Singleton();

           }

           return uniqueInstance;

        }

        // Other methods...

    }

     

     

    var thing ={plugin:'jquery-json', version:2.3};
    var encoded = $.toJSON( thing );
    // '{"plugin":"jquery-json","version":2.3}'
    var name = $.evalJSON( encoded ).plugin;
    // "jquery-json"
    var version = $.evalJSON(encoded).version;

     

  • 相关阅读:
    windows下mongodb的安装
    命令行执行大sql文件
    用css实现3D立方体旋转特效
    tp框架的详细介绍,tp框架基础
    用smarty来做简易留言系统,明细步骤简单操作
    怎么用php语言来做文件缓存
    用smarty模板做数据实现修改、分页等功能
    用smarty模板做的登录
    smarty函数
    Smarty变量
  • 原文地址:https://www.cnblogs.com/standy225/p/3304643.html
Copyright © 2020-2023  润新知