作品連結|程式碼
預計效果:
寫在前面:
字串可解悉為字數(length),字串內索引值(index),字串索引值由0開始,最後字元索引值為字數減1(length-1)。詳細操控方法記錄於下。
本篇筆記記錄經常使用的js Math方法,視使用情況再新增。
1. 絕對值(abs):
0. 寫在前面:
預計目標:
達成條件:
注意項目: