zoukankan      html  css  js  c++  java
  • eval实例

    ....
        var sel_MedicineType = 'sel_MedicineType' + lastIndex;
        eval(sel_MedicineType + "= new C_Select('" + sel_MedicineType + "')");
        eval(sel_MedicineType + ".BindingData(JSON.parse('" + JSON.stringify(MedicineTypeList) + "'))");
        //$("input[type='text'].MedicineID").focus();//为了定位最后1行
        eval(sel_MedicineType + ".Change = function () { ChangHerbQty(" + lastIndex + ",this)}")
        eval("$("button[data-id='" + sel_MedicineType + "']").click()");
    }
    //项目类型控制"贴数字段"
    function ChangHerbQty(index, selObj) {
        if (selObj.value == "ClcA600003") {
            $("#PostsQuantity" + index).attr("disabled", true); //PostsQuantity 贴数字段
        }
        else {
            $("#PostsQuantity" + index).attr("disabled", false);
        }
    }
  • 相关阅读:
    Constructor构造方法
    overload重载
    static关键字
    this关键字
    继承
    ORACLE数据库 常用命令和Sql常用语句
    常见单词
    L贪心基础
    J贪心
    K贪心
  • 原文地址:https://www.cnblogs.com/zhuji/p/7569145.html
Copyright © 2011-2022 走看看