亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

正在回答

1 回答

Number.prototype.toString ( [ radix ] )

NOTEThe optional?radix?should be an integer value in the inclusive range?2?to?36. If?radix?not present or is?undefined?the Number?10?is used as the value of?radix.

The following steps are performed:

  1. Let?x?be thisNumberValue(this?value).

  2. ReturnIfAbrupt(x).

  3. If?radix?is not present, let?radixNumber?be 10.

  4. Else if?radix?is?undefined, let?radixNumber?be 10.

  5. Else let?radixNumber?be?ToInteger(radix).

  6. ReturnIfAbrupt(radixNumber).

  7. If?radixNumber?< 2 or?radixNumber?> 36, throw a?RangeError?exception.

  8. If?radixNumber?= 10, return?ToString(x).

  9. Return the String representation of this Number value using the radix specified by?radixNumber. Letters?a-z?are used for digits with values 10 through 35. The precise algorithm is implementation-dependent, however the algorithm should be a generalization of that specified in?7.1.12.1.

The?toString?function is not generic; it throws a?TypeError?exception if its?this?value is not a Number or a Number object. Therefore, it cannot be transferred to other kinds of objects for use as a method.


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
node建站攻略(二期)——網站升級
  • 參與學習       51926    人
  • 解答問題       423    個

幫助你深入前后端開發留下的迷惑,為進一步自學打下基礎

進入課程

Number.toString('hex')

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號