jQuery獲取字符串末尾字符

substr() 方法可在字符串中抽取從 start 下標開始的指定數目的字符。spa 代碼以下:code str.substr(str.length-1,1)
相關文章
相關標籤/搜索