开发者

JScript, string length

开发者 https://www.devze.com 2023-03-06 04:37 出处:网络
What I can use in \"Microsoft JScript\" instead length() with string. String class does not have Method length开发者_运维技巧() or I did\'t find. What a best way to get string length?There should be a

What I can use in "Microsoft JScript" instead length() with string. String class does not have Method length开发者_运维技巧() or I did't find. What a best way to get string length?


There should be a length property you can use. Note that it's not a method, but a property, so you call it via myStr.length, not myStr.length() (no parentheses).

0

精彩评论

暂无评论...
验证码 换一张
取 消