日常笔记

阅读更多
angular.js不能用hidden传值


CellRangeAddress c=new CellRangeAddress(0,1,0,0);//(firstRow,lastRow,firstCol,lastCol) 合并单元格

document.getElementById("k").value  $("#k").val()  js,jquery获取id属性的值

$("input[name='k1']").val()  //jquery获取name属性的值

var cc=Window.localStotage['cph']; 数据放到Window中

angular.forEach(result,fucntion(item){

    var cl='
  • '
        cl+=item.value1+item.value2+
  •     循环
    })


     


    checkRadio("lTd",$scope.options.data.ly);

    function checkRadio(parentId,value){

      var radio=$("#"+parentId).find("input[type=radio]");
      radio.each(function(i,elem){
      
           if(elem.value===value){

                   elem.checked=true;  判断选中单选框
                    }
        })
    }

    $(document).ready(function(){
      $("button").click(function(){
        $("#tt").attr({width:"50",height:"80"});
      });
    });
    $("#tt").attr("width","180");设置属性



    你可能感兴趣的:(jquery,JavaScript)