zoukankan      html  css  js  c++  java
  • 来聊一下js

          一张图概括本宝宝的学识...吼吼吼...

    -----------------------------------------------------------------------------华丽的分割线-------------------------------------------------------------------------------------------

    牛逼不宜吹太多,下面言归正传

    自打开春以来,本宝宝与js结下不解之缘。本宝宝就希望呀,js能够雨露均沾,可js偏是不听呢...就虐我,就虐我。

    听说js不需要编译的呢...效率高,好方便的呢。

    Var哦,还不用区分数据类型的呢!!只有“哇”一下,轻松就搞定呢!

     1     function Babyself(name , age , gender , fun){
     2 
     3         this.name = name;
     4         this.age = age;
     5         this.gender = gender;
     6         this.power = fun;
     9   }
    10 
    11     var beatifulGirl = new Babyself("cici","secret","girl",function(){
    12         console.log("nice fice & smart");
    13     });
    14 
    15     beatifulGirl.power();   // that's right!

      

        初识总是美好的.... But,tell me why?

     

    <!DOCTYPE html>
    <html lang="zh-cn">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        
    </head>
    <body>
        <div id="hehe"></div>
    </body>
    </html>
    <script>
        
      //说好的document呢?

    hehe.style.width="100px"; hehe.style.height="100px"; hehe.style.backgroundColor="pink"; </script>

                                         

      只有此图可以解释一切!!!

                                            

      

             共勉:

           路慢慢,其修远兮,吾将上下而求索!

           js虐我千百遍,我待js如初恋! 

  • 相关阅读:
    Android自注-15-Activity生命周期
    【v2.x OGE课程 15】 布局相关
    多线程——继承Thread类别
    Kivy A to Z -- Kivy 示例演示自带名单
    Android Training
    [TypeScript] Configuring a New TypeScript Project
    [TypeScript] Installing TypeScript and Running the TypeScript Compiler (tsc)
    [Redux] Fetching Data on Route Change
    [Redux] Wrapping dispatch() to Log Actions
    [Redux] Normalizing the State Shape
  • 原文地址:https://www.cnblogs.com/woshidameinv/p/5733808.html
Copyright © 2011-2022 走看看