首页 > 代码库 > js hashmap 和 push

js hashmap 和 push

            var hashMap1 = {};            $(".productFieldTxt").each(function () {                if ($(this).val() in hashMap1) {                    isOk = false;                    alert("Product Field [" + $(this).val() + "] appears repeatedly.");                    return false;                }                else {                    hashMap1[$(this).val()] = $(this).val();                }            });    var arrayCO = new Array();    var CECustomizeOption = new Object();    CECustomizeOption.ElementId = 0;    CECustomizeOption.ElementText = $(this).text();    CECustomizeOption.ElementValue = http://www.mamicode.com/$(this).val();>

  

js hashmap 和 push