- 相等則往下一位字元比較,反之則得出結果
- 有值的比沒值的大
A的編碼是0041
B的編碼是0042
alert(‘A’ > ‘AB’); // false,因為最高位(最左邊)字元相等,而AB比較長 alert(‘B’ > ‘AB’); // true,最高位字元B比A大
再來看 ‘8’,‘1’,‘0’
0的編碼為0030
1的編碼為0031
8的編碼為0038
alert(‘8’ > ‘10’); // true由於最高位’8’比’1’來的大,所以結果為true
alert(‘A’ > ‘AB’); // false,因為最高位(最左邊)字元相等,而AB比較長 alert(‘B’ > ‘AB’); // true,最高位字元B比A大
alert(‘8’ > ‘10’); // true由於最高位’8’比’1’來的大,所以結果為true
/* * Automatic determination of the ClassLoader to be used to load * resources on behalf of the client. N.B. The client is getLoader's * caller's caller. */ private static ClassLoader getLoader() { Class[] stack = getClassContext(); /* Magic number 2 identifies our caller's caller */ Class c = stack[2]; ClassLoader cl = (c == null) ? null : c.getClassLoader(); if (cl == null) { // When the caller's loader is the boot class loader, cl is null // here. In that case, ClassLoader.getSystemClassLoader() may // return the same class loader that the application is // using. We therefore use a wrapper ClassLoader to create a // separate scope for bundles loaded on behalf of the Java // runtime so that these bundles cannot be returned from the // cache to the application (5048280). cl = RBClassLoader.INSTANCE; } return cl; }