zoukankan      html  css  js  c++  java
  • ajax常用

    function suggesn() {
    
        var suggesn_c = $("#suggesn_c").val();
    
        if (suggesn_c.length < 10 || suggesn_c.length > 250) {
            alert("请输入10-250位字符");
            $('#suggesn_c').focus();
            return false;
        }
        $.ajax({
            type: "post",
            //async:false,
            url: "index.php?m=content&c=index&a=suggestion",
            data: "type=yijian&suggesn_c=" + suggesn_c,
            dataType: "json",
            success: function (savedata) {
                if (savedata['result'] == 1) {
                    alert('感谢您的反馈!');
                    $("#suggesn_c").val('');
                    $(".fudong_app_pl_content").hide();
    
                }
            }
        });
    }
    function drop_audio_list(){
        
            $.ajax({
            type: "get",
            async:false,
            url: 'index.php?m=content&c=media&a=drop_audio_list&delete_id=&num='+Math.random(),
            dataType: "json",
            success: function(savedata){
                    if(savedata['status']==1){
                    
                        for(var i=0;i<$('#playlist-demo li').length;i++){
                            
                            //alert($('#playlist-demo li').eq(i).data('link'));    
                            player.remove($('#playlist-demo li').eq(i).data('link'));    //播放列表中移除    
                        }
                        $("#playlist-demo").html('');
                         player.reset();
                    }
                }
        });
    
    }
  • 相关阅读:
    hdu 4403 枚举
    hdu 4405概率dp
    lightoj 1036 dp
    lightoj 1033 区间dp
    lightoj 1032 二进制的dp
    hdu 4293 dp求最大权值不重合区间
    poj 2449 第k短路
    hdu 4284 状态压缩
    hdu4281 区间dp
    poj 2288 tsp经典问题
  • 原文地址:https://www.cnblogs.com/xiaoli3007/p/4024590.html
Copyright © 2011-2022 走看看