zoukankan      html  css  js  c++  java
  • JS函数集锦 持续更新..

    //1.打开窗口
    function
    WinOpen(url, heightV, widthV) { var iTop2 = (window.screen.availHeight - 20 - heightV) / 2; var iLeft2 = (window.screen.availWidth - 10 - widthV) / 2; var params = 'menubar:no;dialogHeight=' + heightV + ';dialogWidth=' + widthV + ';dialogLeft=' + iLeft2 + 'px;dialogTop=' + iTop2 + 'px;resizable=yes;scrollbars=0;resizeable=0;center=yes;location:no;status:no' window.showModalDialog(url, window, params); }
    //2.删除JQUERY.AJAX操作
    function DelAtt(aid, pid) {
                if (confirm('确定要删除吗?')) {
                    $.ajax({
                        url: 'Ajax.aspx',
                        type: 'post', //数据发送方式 
                        dataType: 'html',                       //接受数据格式 (这里有很多,常用的有html,xml,js,json) 
                        data: { type: 'DelAtt', aid: aid, pid: pid }, //要传递的数据 
                        async: false,
                        success: function (msg) { //成功 
                            if (msg != "") {
                                $("#tdAtt").html(msg);
                            }
                        }
                    });
                }
            }
  • 相关阅读:
    开灯问题
    独木舟上的旅行
    剑指offer--从尾到头打印链表
    映芬视觉网页练习
    游标的使用
    数据库操作
    关系型数据库
    数据库基础知识
    TCPSocket系列二
    HTML5新标签与css3选择器
  • 原文地址:https://www.cnblogs.com/PeaCode/p/3837032.html
Copyright © 2011-2022 走看看