zoukankan      html  css  js  c++  java
  • 打开一个对话框

    function callback(val){

        $("#value").html(val);

    }completed

    $("#btnDialog").click(function(){

          var dialog = new Dialog({

               content : "<div id='init'></div><div id='width'></div><div id='height'></div><div id='value'></div><button id='btnOpenWin'>打开新窗口</button>",

               onLoad : function(){

                     $("#btnOpenWin").click(function(){

                          openWin("fieldpage.aspx?pu=1271","Demo",callback);

                     });

                     $("#init").html("Load ");

               },

               onResize : function(m,v){

                     if(m == 'w'){

                          $("#width").text("" + v);

                     }

                     else{

                          $("#height").text("height:" + v);

                     }

               },

               onClose : function(){

                     return confirm("Are you sure?");

               }

          });

          return false;

    });

  • 相关阅读:
    JavaScript中的数组
    JavaScript中的对象
    Highcharts中设置x轴为时间的写法
    CSS 选择器(基础)
    DOM节点
    平衡木蜻蜓
    python2.7 qt4
    C语言优先级
    树莓派与stm32通信
    linux下USB转串口配置
  • 原文地址:https://www.cnblogs.com/nuaaydh/p/4313201.html
Copyright © 2011-2022 走看看