快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

jq点击增加一段html



    
        
广告位明细(最多5条)
+增加
    
                                           广告位                                                                                                         $value):?>                         ">                                                               
                                                              $value):?>                             ">                                                                                                                              请选择广告位                                                                                  发布时间                                                                                             -                                                                                                                                                                   备注说明                                                                                 上传附件                                                            上传                                                                 
 $("#newyz1").bind('click',function() {
                    _addnum++;
                    var num=_addnum;
                    console.log(num);
                    if($(".one1").length>4){
                        layer.msg("最多5条数据");
                        return false;
                    }
                    var html='\n' +
                        '                \n' +
                        '                    \n' +
                        '\n'+
                        ' \n'+
                        '                        广告位\n' +
                        '                    \n'+
                        '                        \n' +
                        '                            \n';
                    for (var i=0;i'+ports[i]['value']+'';
                    }
                    html+='\n' +
                        '                        \n' +
                        '                        \n' +
                        '                            \n';
                    for (var i=0;i'+pages[i]['value']+'';
                    }
                    html+='\n' +
                        '                            \n' +
                        '                        \n' +
                        '                        \n' +
                        '                            \n' +
                        '                                请选择广告位\n' +
                        '                            \n' +
                        '                        \n' +
                        '\n' +
                        '                    \n' +
                        '                \n' +
                        '                \n' +
                        '                    发布时间\n' +
                        '                    \n' +
                        '                        \n' +
                        '                            \n' +
                        '                            \n' +
                        '                            -\n' +
                        '                        \n' +
                        '                    \n' +
                        '                    \n' +
                        '                        \n' +
                        '                            \n' +
                        '                            \n' +
                        '                        \n' +
                        '                    \n' +
                        '                \n' +
                        '                \n' +
                        '                    备注说明\n' +
                        '                    \n' +
                        '                    \n' +
                        '                        \n' +
                        '                \n' +
//                            ' \n' +
//                        '                    上传附件\n' +
//                        '                    \n' +
//                        '                        \n' +
//                        '                            \n' +
//                        '                                上传\n' +
//                        '                                \n' +
//                        '                            \n' +
//                        '                        \n' +
//                        '                    \n' +
//                        '                \n'+
                    '';
                    $('#xx').append(html);

                    //jq上传插件开始
                    $(".UploadImg").fileupload({
                        url: 'http://imgapi.qq.com/upload/php/upload.php',
                        sequentialUploads: true,
                        formData: {"app": 'brzy'},
                        returnType: "json",
                        acceptFiles: "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/*,p_w_picpath/*,.pdf,.zip,.rar,.doc,.docx",
                        dataType: 'json',

// 上传完成后的执行逻辑
                        done: function (e, data) {
                            var n = data.jqXHR.responseText;
                            var an = JSON.parse(n);
                            // console.log(an);
                            layer.closeAll();
                            // if(typeof(_clickBut)=='undefined'){
                            //     var _clickBut='';
                            // }
                            _clickBut = $(this).attr('data');//哪个按钮被点击了
                            console.log($(this));
                            callback(an.url);
                        },
// 上传过程中的回调函数
                        progressall: function (e, data) {
                            layer.load(0, {shade: false});
                        }
                    });

                    //jq插件结束
                    $(".khnimus1").live('click',function(){
                        $(this).parents(".one1").remove();
                    });
                });

新闻名称:jq点击增加一段html
浏览路径:http://6mz.cn/article/pegpsj.html

免费获取网站建设与品牌策划方案报价

*主要业务范围包括:高端网站建设, 集团网站建设(网站建设网站制作)找网站建设公司就上快上网。
提交需求

    联系我们

    028-86922220
  • 手机:13518219792
  • 地址:成都市太升南路288号锦天国际A幢1002号
  • 24小时服务热线:400-028-6601

    网站建设服务

  • 网页设计
  • 网站制作
  • 网站开发

    网站推广服务

  • 营销网站建设
  • 百度快速排名
  • 整站网站推广

    网站运维服务

  • 基础维护
  • 网站改版
  • 网站维护

    FOLLOW US

  • 微信二维码

    微信二维码

Copyright © 2022 成都快上网科技有限公司 成都网站建设公司-选网站建设公司快上网!国内专业的网站制作公司!
All Rights Reserved 版权所有 蜀ICP备19037934号-11