[JS 學習] javascript 之 Math.random、Math.floor、substring 用法

javascript中的Math.random,是隨機亂數取值,用到的地方,還算滿廣的

javascript中的Math.floor,取得小於的最大整數,配合Math.random使用

javascript中的substring,這是從那開始抓字,及到那結束

弄了一個簡單的密碼產生器,用了上述3個js方法,就順便和大家分享一下心得

避免被瀏覽器解析,請下載 example002.zip 這個範例檔

drive.googleonedrive.live【下載教學】

ex002.htm代碼及執行結果






對上述圖文教學,還不太明白的話,請至下方連結,查看 youtube 視頻解說

視頻解說之第一部分 https://www.youtube.com/watch?v=T1PLMAldyxA

謝謝大家,抽空觀看,files備份檔名 javascriptguides002

沒有留言:

發佈留言

由於一直被灌水, 因此您發表留言之後, 需要等待博客主的審核, 才會公開您的留言, 所以請不要重複的留言
Hello my friend, I have no money, My blog is super chill, Please do not screw me up in the replies at the bottom of the article, thanks a lot