- If
start is a positive number, the index starts counting at
the start of the string. Its value is capped at str.length.
- If
start is a negative number, the index starts counting
from the end of the string. Its value is capped at
-str.length.
- Note: In Microsoft JScript, negative values of the
start
argument are not considered to refer to the end of the string.
- If
length is omitted, substr() extracts
characters to the end of the string.
- If
length is undefined, substr()
extracts characters to the end of the string.
- If
length is a negative number, it is treated as
0.
- For both
start and length,
NaN is treated as 0.
今回リリースした新バージョン(v2.19)も、動作原理は前バージョンと同じなのですが、「どれだけ簡単に難読化できるか」という利便性を究極まで推し進めてみました。
例えば、前バージョンでは難読化したいHTMLファイルひとつひとつに替え玉ファイルを用意する必要がありましたが、
新バージョンでは、その作業は必要なくなり、全自動でHTMLファイルを難読化できるようになりました。使い方の具体例をあげましょう。
今フォルダの中に難読化したいHTMLファイル
( page1.html )があったとします。