<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # getConstellationByBirthday(根據出生判斷星座) ## 一:示例 ![mark](http://qiniu.newthink.cc/blog/20170220/142043849.png) ## 二:相關代碼 ``` /** * [getConstellationByBirthday 根據出生年月判斷屬于哪一個星座] * @author [hongwei] * @param {[string]} strBirthday [出生日期] * @return {[string]} [12星座中的一個] * @example getConstellationByBirthday('1983-11-17'); 結果是 :天蝎座 * @link http://www.hmoore.net/hongweizhiyuan/apicloud_function/274920 */ function getConstellationByBirthday(strBirthday) { var value; var strBirthdayArr=strBirthday.split("-"); var birthMonth = strBirthdayArr[1]; var birthDay = strBirthdayArr[2]; if (birthMonth == 1 && birthDay >=20 || birthMonth == 2 && birthDay <=18) {value = "水瓶座";} if (birthMonth == 1 && birthDay > 31) {value = "Huh?";} if (birthMonth == 2 && birthDay >=19 || birthMonth == 3 && birthDay <=20) {value = "雙魚座";} if (birthMonth == 2 && birthDay > 29) {value = "Say what?";} if (birthMonth == 3 && birthDay >=21 || birthMonth == 4 && birthDay <=19) {value = "白羊座";} if (birthMonth == 3 && birthDay > 31) {value = "OK. Whatever.";} if (birthMonth == 4 && birthDay >=20 || birthMonth == 5 && birthDay <=20) {value = "金牛座";} if (birthMonth == 4 && birthDay > 30) {value = "I'm soooo sorry!";} if (birthMonth == 5 && birthDay >=21 || birthMonth == 6 && birthDay <=21) {value = "雙子座";} if (birthMonth == 5 && birthDay > 31) {value = "Umm ... no.";} if (birthMonth == 6 && birthDay >=22 || birthMonth == 7 && birthDay <=22) {value = "巨蟹座";} if (birthMonth == 6 && birthDay > 30) {value = "Sorry.";} if (birthMonth == 7 && birthDay >=23 || birthMonth == 8 && birthDay <=22) {value = "獅子座";} if (birthMonth == 7 && birthDay > 31) {value = "Excuse me?";} if (birthMonth == 8 && birthDay >=23 || birthMonth == 9 && birthDay <=22) {value = "室女座";} if (birthMonth == 8 && birthDay > 31) {value = "Yeah. Right.";} if (birthMonth == 9 && birthDay >=23 || birthMonth == 10 && birthDay <=22) {value = "天秤座";} if (birthMonth == 9 && birthDay > 30) {value = "Try Again.";} if (birthMonth == 10 && birthDay >=23 || birthMonth == 11 && birthDay <=21) {value = "天蝎座";} if (birthMonth == 10 && birthDay > 31) {value = "Forget it!";} if (birthMonth == 11 && birthDay >=22 || birthMonth == 12 && birthDay <=21) {value = "人馬座";} if (birthMonth == 11 && birthDay > 30) {value = "Invalid Date";} if (birthMonth == 12 && birthDay >=22 || birthMonth == 1 && birthDay <=19) {value = "摩羯座";} if (birthMonth == 12 && birthDay > 31) {value = "No way!";} return value; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看