tailieunhanh - JavaScript Bible, Gold Edition part 110
JavaScript Bible, Gold Edition part 110. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 938 Part IV JavaScript Core Language Reference Related Items methods. searchString startindex Returns Index value of the last character within string where searchString begins. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The stri method is closely related to the method string. i ndexOf . The only difference is that this method starts its search for a match from the end of the string string .length - 1 and works its way backward through the string. All index values are still counted starting with 0 from the front of the string. The examples that follow use the same values as in the examples for so that you can compare the results. In cases where only one instance of the search string is found the results are the same but when multiple instances of the search string exist the results can vary widely hence the need for this method. Caution This string method has experienced numerous bugs particularly in Navigator 2 and in later versions for UNIX. Scripts using this method should be tested exhaustively. Example on the CD-ROM On the CD-ROM Related Items methods. string2 Returns Integer. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The localeCompare method lets a script compare the cumulative Unicode values of two strings taking into account the language system for the browser. The need for this method affects only some language systems Turkish is said to be one . If the two strings adjusted for the language system are equal the value stringobject. localeCompare Chapter 34 The String Object 939 returned is zero. If the string value on which the method is invoked meaning the string to the left of the period sorts ahead of the parameter string the value returned is a negative integer otherwise the returned value is a positive integer. The ECMA standard for this method leaves the
đang nạp các trang xem trước