Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Product of Science
    Join Date: Aug:2016
    Location:
    Posts: 294

    Java Script ,

    :
    Boolean .
    , , .
    , , ?
    Code:
        <script>
        
          function CheckAll(y, m, d, h, i, date0)
          {
            var y1 = date0.getYear();
            var m1 = date0.getMonth();
            var d1 = date0.getDay();
            var h1 = date0.getHours();
            var i1 = date0.getMinutes();
            var b = Boolean(y==y1 & m==m1 & d==d1 & h==h1 & ((i-i1)>=-1 & (i-i1)<=1)); 
            return b;
          }
    
    //...............................
    
            var b = (CheckAll(y, m, d, h, i, date1);
            if b 
            {
            }
    
    //........
    
        </script>

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    Firefox ( ) error log dev tools, .
    ( -) - ..
    & ( && ). , - , , , , .., - (, , ) (, ..). .

  3. #3
    Product of Science
    Join Date: Aug:2016
    Location:
    Posts: 294
    .
    :
    Code:
    var b = Boolean(((i-i1)>=-1 && (i-i1)<=1) && h==h1 && d==d1 && m==m1 && y==y1);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |