zoukankan      html  css  js  c++  java
  • mootools 对比 jquery选择器

       window.addEvent('domready', function() {
          $('select-city').addEvent('click',function(){  //mootools中id选择器
            $$(".not_morelist").setStyle('display', 'block');;  //mootools中class选择器
          });
        });

     

         jquery中操作如果是:$("textarea[name='city']").val(value);
         则在mootools中如下:$$("textarea[name='city']").setProperty('value', value);

     

      //mootools中得到所有选中的checkbox的值

      $$("input[name=sc]").each(function(e){
        if($(e).getProperty("checked")) {
          console.log($(e).getProperty('value'));
        }
      });

     

  • 相关阅读:
    Unique path
    *Jump Game
    Valid Palindrome
    *Reverse Words in a String
    Min Stack
    [?]*Simplify Path
    *Valid Parentheses
    *Sqrt(x)
    String to Integer (atoi)
    Add Digits
  • 原文地址:https://www.cnblogs.com/fanglin/p/2537099.html
Copyright © 2011-2022 走看看