jQuery总结(九)

作者: 风的低语 | 来源:发表于2018-06-20 14:41 被阅读13次

状态改变的jq写法

    $(document).ready(function() {
        //Ajax写这里

        $("#selModules").change(function() {
            var checkObj=$(this).val();
            //alert($(this).val());
            $.post(
            "selectNotesType.do",
             {"ids" : checkObj},
             function(data) {
                // 提示信息
                //alert(data);
                location.href = "findAll.do?type=" + data;
            });

        });
    });

相关文章

网友评论

    本文标题:jQuery总结(九)

    本文链接:https://www.haomeiwen.com/subject/itmiixtx.html