最近听说lhgdialog控件很好用,而且很方便,于是就抽空研究了一下

使用lhgdialog控件主要分为两中情况

1 lhgdialog控件同时页面上也引用了jquery,则调用格式为

   <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
   <script src="Scripts/lhgdialog/lhgdialog.min.js" type="text/javascript"></script>

   这种情况下的使用方法:

    jQuery(function () {
            jQuery('#btn1').dialog({ id: 'test1', title: '测试使用', content: 'url:Child.aspx' });
        });

   注意:官方说当前可以直接使用J(FUNCTION),但是我自己测试的时候发现必须将jQuery都写全,才有用

2 页面上单独使用lhgdialog控件,则调用格式为

  <script src="Scripts/lhgdialog/lhgcore.lhgdialog.min.js" type="text/javascript"></script>

  使用方法:

   $(function () {
            $('#btn1').dialog({ id: 'test1', title: '测试使用', content: 'url:Child.aspx' });
        });

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2022-02-21
  • 2021-09-06
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案