zoukankan      html  css  js  c++  java
  • option

     function loadclass()
        {
            jQuery.ajax({
                url: "/Assets/GetDistinctClassNameByType",
                data: { typeid: $("#DDLTypeID").val() },
                type: "post",
                cache: false,
                dataType: "json",
                success: function(msg) {
                var select_root = document.getElementById('DDLAssetsName');
                select_root.options.length = 0;
                select_root.add(new Option("请选择", '-1'));
                    var data = msg.options;
                    $.each(data, function(i, n) {
                        if(n.text&&n.value)
                        {
                        var option = new Option(n.text, n.value);
                        select_root.add(option);
                        }
                    });
                }
            });
            var select_root = document.getElementById('DDLAssetsModel');
                select_root.options.length = 0;
                select_root.add(new Option("请选择", '-1'));
        }
  • 相关阅读:
    scala泛函编程是怎样被选中的
    新一代编程:scala泛函编程技术-唠叨
    maven依赖本地非repository中的jar包【转】
    关于maven的profile
    intellij idea使用技巧
    springmvc的过滤器和拦截器
    spring bean的生命周期
    关于spring的bean
    关于递归
    tcp
  • 原文地址:https://www.cnblogs.com/soonfly/p/1646617.html
Copyright © 2011-2022 走看看