Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 女人隐私秘视频黄www免费,99久久免费费视频在线观看,久久亚洲精品成人

          整合營銷服務商

          電腦端+手機端+微信端=數據同步管理

          免費咨詢熱線:

          Chinese student praised for inspiring US graduation speech

          hang Jin China Plus Published: 2017-06-10 20:01:24

          To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

          Another graduation speech by a Chinese student in the United States has gone viral, but this time has been praised for its positive and inspiring tone, reports People's Daily.

          Receiving her Master of Science in Math Finance from Boston University, Cai Yujing, who comes from Nanjing city in east China's Jiangsu Province, spoke about her hometown and family members present at the ceremony, and then shared her 6-year experience studying with students from different cultural backgrounds.

          In her 7-minute speech, Cai talked about how she adapted to the diverse community at the Questrom School of Business and established mutual understanding with fellow students.

          Overcoming awkwardness, nervousness, and even occasional anger when exchanging ideas with people from different countries, she said she also experienced the joy of sharing, inspiring and embracing each other, adding that such an experience opened her mind to learning about and embracing diversity.

          Cai's speech won a lot of praise online with some saying her address highlighted the positive perspective of Chinese students.

          Many compared it to a speech made by another Chinese student in the US last month.

          Yang Shuping, a graduate student at the University of Maryland, preferred to compliment the "fresh air" in the US in her graduation speech while damning the air quality of her hometown Kunming, a city that actually enjoys good air quality.

          Yang's speech went viral last month and triggered outrage among Chinese netizens, who accused her of complimenting the US and belittling her homeland.

          Yang later posted an apology on her Sina Weibo social media account, and asked for forgiveness.

          然發現一個國外的網站接入了天氣板塊,很有意思的是該網站所有的天氣圖標都是會動的。

          于是我便有了學(chao)習(xi)的念頭,我們來一探究竟。

          一、順藤摸瓜

          通過審查元素,我們很快定位到了一個叫 skycons 的 js 類庫,順藤摸瓜找到了 github 地址,順手下載了一份 skycons.js 文件。

          OK,萬事具備,下面我們開始分步剖析。

          二、簡單示例

          首先,添加 canvas,并設置 id,以備后續使用,寬高可以隨意設置,如下:

          其次,我們實例化 Skycons:

          然后,在我們的元素上通過 canvas id 來添加動畫,并選擇動畫類型:

          最后,別忘了,播放它:

          通過調用 skycons.play() 來播放動畫。

          這樣,一個簡單的示例就完成了,是不是很簡單呢?下面我們來看看參數詳解。

          三、參數詳解

          可設置的天氣類型參數:

          • CLEAR_DAY
          • PARTLY_CLOUDY_DAY
          • CLOUDY
          • RAIN
          • SLEET
          • SNOW
          • WIND
          • FOG

          添加動畫:

          播放動畫:

          skycons.play();
          

          暫停動畫:

          skycons.pause()
          

          動態更改 icon :

          skycons.set('jartto1', Skycons.PARTLY_CLOUDY_NIGHT);
          

          為什么要動態更改,因為天有不測風云,你的天氣信息一定要及時。

          移除動畫:

          skycons.remove('jartto2');
          

          四、實際應用

          為了更好的說明問題,我們來做一個天氣板塊的完整示例:

          首先,引入 skycons 文件:

          其次,創建html結構:

          最后,添加 js 代碼:

          是不是很簡單呢,更多請查看 Demo:

          https://github.com/chenfengyanyu/my-web-accumulation/tree/master/skycons
          

          五、問題匯總

          1.實際的天氣狀況可能有很多,而 skycons 提供的選擇并不多;

          解決方案:合并同類的天氣狀況,可能的代碼如下:

          六、源碼分析

          因為看不到文檔,所以很好奇,大概瞅了一些源碼。當然,也并不是一無所獲,譬如:

          1.requestAnimationFram 的兼容處理:

          2.add 方法:

          add 方法操作的是一個數組,也就意味著,我們只需要實例化一次 skycons 就可以添加多個 icons 。

          3.定時器的時間設置技巧 1000 / 60,動畫更加流暢:

          起初不太理解作者為何要設置這個數值,后來才意識到:

          大多數電腦顯示器的刷新頻率是 60 Hz,大概相當于每秒鐘重繪 60 次。

          大多數瀏覽器都會對重繪操作加以限制,不超過顯示器的重繪頻率,因為即使超過那個頻率用戶體驗也不會有提升。

          因此,最平滑動畫的最佳循環間隔是 1000 ms / 60,約等于 16.6 ms 。

          4.各種 canvas 畫太陽,云彩,風等方法,可以參考。

          源碼比較簡單,詳情請查看:

          https://github.com/chenfengyanyu/my-web-accumulation/blob/master/skycons/skycons.js

          七、效果一覽

          是不是很有意思,快來試試吧!附上 Demo 地址:

          https://github.com/chenfengyanyu/my-web-accumulation/tree/master/skycons
          

          八、熱門原創文章

          1.HTML5 之音頻合成(Speech Synthesis)

          2.DevOps 簡介

          3.前端反思錄(三)—談談個人規劃

          2E-Awesome

          首先,我不得不提一下「一萬小時定律」:

          人們眼中的天才之所以卓越非凡,并非天資超人一等,而是付出了持續不斷的努力。

          怎么理解呢?要成為某個領域的專家,需要 10000 小時,按比例計算就是:如果每天工作八個小時,一周工作五天,那么成為一個領域的專家至少需要五年-這就是一萬小時定律。

          1 萬小時的錘煉是任何人從平凡變成世界級大師的必要條件。

          原諒我開篇的啰嗦,本系列文章我將從三個層次來說明:

          1. 技術就是核心競爭力;
          2. 前端反思錄(二)—不要讓軟實力成為短板;
          3. 前端反思錄(三)—談談個人規劃

          主站蜘蛛池模板: 国产成人高清亚洲一区91| 日韩亚洲一区二区三区| 亚洲日本一区二区一本一道| 精品国产一区二区三区av片| 美女视频黄a视频全免费网站一区 美女免费视频一区二区 | 亚洲高清一区二区三区| 消息称老熟妇乱视频一区二区| 蜜臀AV在线播放一区二区三区| 色婷婷av一区二区三区仙踪林| 国产AV国片精品一区二区| 亚洲av无码一区二区三区网站| 精品国产一区二区三区av片| 国产探花在线精品一区二区| 韩国精品一区视频在线播放| 亚洲日韩国产精品第一页一区| 国产福利日本一区二区三区| 久久精品中文字幕一区| 手机福利视频一区二区| 中文字幕在线看视频一区二区三区| 日韩精品无码Av一区二区| 亚洲香蕉久久一区二区 | 91一区二区视频| 中文字幕一区精品| 三级韩国一区久久二区综合| 韩国理伦片一区二区三区在线播放| 99久久国产精品免费一区二区| 精品国产一区二区三区久久影院| 国产精品视频分类一区| 亚洲国产美国国产综合一区二区| 熟女性饥渴一区二区三区| 合区精品久久久中文字幕一区| 国产精品一区二区久久沈樵| 一本一道波多野结衣一区| 午夜福利无码一区二区 | 无码精品蜜桃一区二区三区WW| 国产成人一区二区三区电影网站| 日韩视频免费一区二区三区| 国产精品亚洲专区一区| 久久久不卡国产精品一区二区| 亚洲毛片αv无线播放一区| 国产在线无码视频一区二区三区 |