{"id":133137,"date":"2019-01-13T09:40:23","date_gmt":"2019-01-13T01:40:23","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=133137"},"modified":"2019-01-07T09:44:54","modified_gmt":"2019-01-07T01:44:54","slug":"kotlin-language","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kotlin-language.html","title":{"rendered":"Kotlin\u8bed\u8a00\u7684\u4f18\u7f3a\u70b9\u7b80\u4ecb\u53ca\u63d0\u51fa\u7684\u4e00\u70b9\u5efa\u8bae"},"content":{"rendered":"
\u4eceAndroid 7.0\u5f00\u59cb\uff0c\u8c37\u6b4c\u4f7f\u7528\u7684API\u4eceOracle JDK\u5207\u6362\u5230\u4e86open JDK\uff0c\u8fd9\u5bf9\u4e8e\u8c37\u6b4c\u6765\u8bf4\u662f\u4e00\u4e2a\u8270\u96be\u7684\u51b3\u5b9a\u3002\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u5374\u500d\u611f\u5174\u594b\uff0c\u8fd9\u610f\u5473\u7740\u957f\u671f\u7684\u5b98\u53f8\u95ee\u9898\u4e5f\u8bb8\u5c31\u6b64\u7ed3\u675f\uff0cAndroid\u7cfb\u7edf\u5f00\u53d1\u53c8\u53ef\u4ee5\u56de\u5f52\u5230\u4e00\u4e2a\u6b63\u5e38\u7684\u8f68\u9053\uff0c\u6301\u7eed\u7ed9\u5168\u7403\u7684\u5b89\u5353\u7528\u6237\u5e26\u6765\u60ca\u559c\u3002<\/p>\n
<\/p>\n
Kotlin\u8bed\u8a00\u88ab\u8d5e\u8a89\u4e3aAndroid\u4e16\u754c\u91cc\u7684Swift.<\/p>\n
\u7b80\u5355\u6765\u8bf4\uff0c\u53ef\u4ee5\u8fd9\u6837\u6982\u62ec\uff1a<\/p>\n
\u4f7f\u7528Kotlin\u5f00\u53d1\uff0c\u5bf9\u4e8e\u5b89\u5353\u5f00\u53d1\u6765\u8bf4\uff0c\u4e3b\u8981\u6709\u4e0b\u9762\u51e0\u4e2a\u6709\u5229\u7684\u5f71\u54cd\uff1a<\/p>\n
Kotlin\u8bed\u8a00\u662f\u7531JetBrains\u516c\u53f8\u5f00\u53d1\uff0c\u5176\u521d\u8877\u7528\u4e8e\u5feb\u901f\u751f\u6210JavaScript\u4ee3\u7801\uff0c\u800c\u5982\u4ecaKotlin\u5df2\u7ecf\u652f\u6301Android\u5f00\u53d1\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684Android\u5f00\u53d1\u63d2\u4ef6\u3002\u7531\u4e8eJetBrains\u7684\u5929\u7136\u4f18\u52bf\uff08Android Studio\u5c31\u662f\u5728JetBrains\u516c\u53f8\u5f00\u53d1\u7684IDE\u4e0a\u9762\u6dfb\u52a0\u4e86\u4e00\u4e9b\u63d2\u4ef6\u800c\u6210\uff09\uff0cAndroid Studio\u5bf9Kotlin\u8bed\u8a00\u7684\u652f\u6301\u4e5f\u6bd4\u8f83\u5230\u4f4d\u3002
\n\u770b\u4e00\u770bKotlin\u8bed\u8a00\u7ed9\u6211\u4eec\u5e26\u6765\u4e86\u4ec0\u4e48\u3002<\/p>\n
\u7a7a\u6307\u9488\u5f02\u5e38\u7684\u786e\u662f\u56f0\u6270Java\u7a0b\u5e8f\u5458\u5f88\u591a\u5e74\u7684\u95ee\u9898\uff0cSwift\u8bed\u8a00\u5de7\u5999\u5730\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0cKotlin\u91c7\u7528\u4e86\u4e00\u6837\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ea\u662f\u8bed\u6cd5\u5f62\u5f0f\u4e0d\u592a\u4e00\u6837\u3002
\n\u6211\u4eec\u6765\u548cJava\u8bed\u8a00\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u5bf9\u6bd4:<\/p>\n
Room room = ...;\r\nif(null != room && null != room.window) {\r\n room.window.open();\r\n}\r\n<\/pre>\nKotlin<\/strong><\/span><\/div>\nval room: Room? = ...\r\nroom?.window?.open()<\/pre>\n\u4ece\u5e38\u8bc6\u6765\u8bf4\uff0c\u6211\u4eec\u77e5\u9053\uff0c\u4e00\u4e2a\u623f\u95f4\u53ef\u80fd\u4f1a\u6709\u7a97\u6237\uff0c\u4e5f\u53ef\u80fd\u6ca1\u6709\u7a97\u6237\uff0c\u5982\u679c\u6ca1\u6709\u7a97\u6237\uff0c\u8c03\u7528open\u65b9\u6cd5\u81ea\u7136\u5c31\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488\u5f02\u5e38\u3002Java\u8bed\u8a00\u7684\u5904\u7406\u65b9\u5f0f\u662f\u5728\u8c03\u7528\u8be5\u65b9\u6cd5\u4e4b\u524d\u8fdb\u884c\u7a7a\u503c\u5224\u65ad\uff0c\u800cKotlin\u8bed\u8a00\u5219\u4f7f\u7528\uff1f\u64cd\u4f5c\u7b26\u8fdb\u884c\u63a7\u5236\uff0c\u610f\u601d\u5c31\u662f\uff0c\u5982\u679c\uff1f\u524d\u9762\u7684\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u5219\u76f4\u63a5\u8fd4\u56de\u7a7a\u503c\uff0c\u540e\u9762\u7684\u8bed\u53e5\u4e0d\u518d\u6267\u884c\u3002\u5176\u6709\u4e00\u4e2a\u4e13\u4e1a\u53eb\u6cd5\uff1a Optinal Value \uff08\u53ef\u9009\u503c\uff09.
\n\u76f8\u5bf9\u4e8eJava\u8bed\u8a00\uff0cKotlin\u8bed\u8a00\u7684\u5904\u7406\u65b9\u5f0f\u7b80\u5355\u4e86\u8bb8\u591a\uff0c\u66f4\u91cd\u8981\u7684\u662f\uff1a\u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u6211\u7684\u7a0b\u5e8f\u51fa\u73b0\u7a7a\u6307\u9488\u5f02\u5e38\u4e86 -_-<\/p>\n\u7ec6\u5fc3\u7684\u8bfb\u8005\u5e94\u8be5\u53ef\u4ee5\u53d1\u73b0\uff0cKotlin\u8bed\u8a00\u5c06\u5206\u53f7\u4e5f\u53bb\u6389\u4e86\uff0c\u8fd9\u548cSwift\u8bed\u8a00\u7684\u5904\u7406\u65b9\u5f0f\u4e5f\u662f\u4e00\u81f4\u7684\u3002<\/p>\n
\u5173\u4e8eOptional Value\u7684\u5177\u4f53\u7528\u6cd5\uff0c\u540e\u9762\u6211\u4f1a\u4e13\u95e8\u7528\u4e00\u4e2a\u7ae0\u8282\u6765\u7ed9\u5927\u5bb6\u8bb2\u89e3\uff0c\u8bf7\u671f\u5f85\u540e\u9762\u6211\u7684Kotlin\u8bed\u8a00\u7cfb\u5217\u6559\u7a0b\u3002<\/p>\n
Function<\/strong><\/div>\n\u5728Kotlin\u8bed\u8a00\u4e2d\uff0c\u7c7b\u7ec8\u4e8e\u4e0d\u518d\u662f\u4e00\u7b49\u516c\u6c11\u3002Kotlin\u8bed\u8a00\u5f00\u59cb\u652f\u6301\u9762\u5411\u8fc7\u7a0b\u7f16\u7a0b\uff0cKotlin\u8bed\u8a00\u4e2d\u53ef\u4ee5\u58f0\u660e\u5168\u5c40\u51fd\u6570\uff0c\u5185\u8054\u51fd\u6570\u7b49\uff0c\u8fd8\u652f\u6301\u51fd\u6570\u5d4c\u5957\uff0c\u4f7f\u7528\u51fd\u6570\u4f5c\u4e3a\u65b9\u6cd5\u53c2\u6570\u7b49\u64cd\u4f5c\u3002\u5bf9\u4e8e\u4e00\u4e9b\u7b80\u5355\u7684\u64cd\u4f5c\uff0c\u65b0\u5efa\u4e00\u4e2a\u7c7b\u53bb\u5904\u7406\uff0c\u7684\u786e\u6709\u65f6\u5019\u662f\u4e00\u4e2a\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\uff0cKotlin\u8bed\u8a00\u7ec8\u4e8e\u8ba9\u6211\u4eec\u6446\u8131\u4e86\u8fd9\u4e00\u5c34\u5c2c\u7684\u73b0\u72b6\u3002<\/p>\n
\u6765\u770b\u4e00\u770b\u51fd\u6570\u58f0\u660e\u7684\u7b80\u5355\u5199\u6cd5\uff0c\u4e5f\u548cJava\u8bed\u8a00\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u5bf9\u6bd4<\/p>\n
Java<\/strong><\/span><\/div>\npublic Sting sayHello(String name) {\r\n return \"Hello, \" + name;\r\n}\r\n<\/pre>\nKotlin<\/strong><\/span><\/div>\nfun String sayHello(name: String?): String {\r\n return \"Hello, $name\"\r\n}\r\n<\/pre>\n\u51fd\u6570\u7684\u5199\u6cd5\u6709\u8f83\u5927\u7684\u4e0d\u540c\uff0cKotlin\u8bed\u6cd5\u7c7b\u4f3cSwift\u8bed\u8a00\u7684\u5199\u6cd5\uff0c\u6bcf\u4e2a\u51fd\u6570\u90fd\u5fc5\u987b\u4f7f\u7528fun\u5173\u952e\u5b57\u58f0\u660e\uff0c\u53c2\u6570\u7c7b\u578b\u5728\u540e\uff0c\u53c2\u6570\u540d\u79f0\u5728\u524d\uff0c\u5bf9\u4e8eJava\u8bed\u8a00\u5f00\u53d1\u7684\u540c\u5b66\u53ef\u4ee5\u9700\u8981\u4e00\u4e2a\u77ed\u6682\u7684\u9002\u5e94\u8fc7\u7a0b\u3002<\/p>\n
\u540c\u6837\u5730\uff0c\u6211\u4f1a\u5728\u540e\u9762\u7684\u6587\u7ae0\u4e2d\u4e13\u95e8\u5bf9Kotlin\u51fd\u6570\u8fdb\u884c\u8bb2\u89e3<\/p>\n
Lambdas<\/strong><\/div>\n\u95ed\u5305\u5e94\u8be5\u662fJava\u7a0b\u5e8f\u5458\u975e\u5e38\u671f\u5f85\u7684\u4e00\u4e2a\u7279\u6027\uff0c\u800c\u4e14\u5e78\u8fd0\u7684\u662f\uff0cJava8\u5df2\u7ecf\u5f00\u59cb\u652f\u6301\u8fd9\u4e00\u7279\u6027\u3002\u4e8c\u8005\u975e\u5e38\u76f8\u4f3c\uff0c\u6211\u4eec\u6765\u548cJava8\u7684\u95ed\u5305\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u5bf9\u6bd4<\/p>\n
Java8<\/strong><\/span><\/div>\ninterface Sum {\r\n int add(int x,int y);\r\n}\r\n\r\nSum sum = (x,y) -> x + y\r\n<\/pre>\nKotlin<\/strong><\/span><\/div>\nval sum: (Int,Int) -> Int = { x,y -> x + y }\r\n<\/pre>\n\u53ef\u4ee5\u770b\u5230\uff0c\u4e8c\u8005\u7684\u8bed\u6cd5\u975e\u5e38\u7c7b\u4f3c\uff0c\u540c\u6837\u652f\u6301\u7c7b\u578b\u63a8\u5bfc\uff0c\u652f\u6301\u7b80\u5199\uff1b\u4e0d\u540c\u7684\u662f\uff0c\u7531\u4e8eJava\u8bed\u8a00\u5b8c\u5168\u9762\u5411\u5bf9\u8c61\u7684\u7279\u6027\uff0c\u95ed\u5305\u5fc5\u987b\u4e0e\u63a5\u53e3\u4e00\u4e00\u5bf9\u5e94\uff0c\u800cKotlin\u8bed\u8a00\u7531\u4e8e\u5929\u7136\u652f\u6301\u51fd\u6570\u7f16\u7a0b\uff0c\u53ef\u4ee5\u4e0d\u7528\u58f0\u660e\u5bf9\u5e94\u63a5\u53e3\uff0c\u76f4\u63a5\u5728\u53c2\u6570\u4e2d\u4f7f\u7528\u5373\u53ef\u3002<\/p>\n
Extension<\/strong><\/div>\n\u8fd9\u662f\u6211\u6700\u559c\u6b22\u7684\u4e00\u4e2a\u7279\u6027\uff0cKotlin\u8bed\u8a00\u652f\u6301\u5bf9\u73b0\u6709\u7684\u7c7b\u8fdb\u884c\u6269\u5c55\u3002Java\u7a0b\u5e8f\u5458\u5e94\u8be5\u4f1a\u5bf9\u8fd9\u4e2a\u7279\u6027\u6bd4\u8f83\u964c\u751f\uff0c\u8fd9\u4e5f\u662fSwift\u8bed\u8a00\u7684\u4e00\u4e2a\u7279\u6027\u4e4b\u4e00\u3002\u6240\u8c13\u6269\u5c55\uff0c\u5c31\u662f\u5728\u4e0d\u4f7f\u7528\u7ee7\u627f\u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u73b0\u6709\u7684\u7c7b\u65b0\u589e\u65b9\u6cd5\uff0c\u5c5e\u6027\u7b49\u64cd\u4f5c\uff0c\u6269\u5c55\u4e0d\u4f1a\u7834\u574f\u73b0\u6709\u7684\u7c7b\u65b9\u6cd5\uff0c\u4ec5\u4ec5\u5728\u4f7f\u7528\u7684\u65f6\u5019\u8fdb\u884c\u52a8\u6001\u6dfb\u52a0\u3002\u5e94\u8be5\u8bb0\u4f4f\u4e00\u4e2a\u539f\u5219\uff1a \u6269\u5c55\u4f18\u4e8e\u7ee7\u627f
\n\u800c\u8fd9\u4e2a\u7279\u6027Java\u8bed\u8a00\u5e76\u4e0d\u652f\u6301\u3002<\/p>\nKotlin<\/strong><\/span><\/div>\nfun MutableList<Int>.swap(index1: Int, index2: Int) {\r\n val tmp = this[index1] \/\/ 'this' corresponds to the list\r\n this[index1] = this[index2]\r\n this[index2] = tmp\r\n}\r\n<\/pre>\nData Class<\/strong><\/div>\n\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5e38\u5e38\u8981\u4e0d\u65ad\u5199\u4e00\u4e9bModel\u7c7b\uff0c\u4e0d\u65ad\u5730\u4f7f\u7528\u5f00\u53d1\u5de5\u5177\u751f\u6210set\/get\u65b9\u6cd5\u3002Data Class\u5c31\u662f\u4e3a\u7b80\u5316\u8fd9\u4e2a\u64cd\u4f5c\u800c\u751f\u7684\uff0c\u6570\u636e\u7c7b\u4f1a\u81ea\u52a8\u751f\u6210set\/get\u65b9\u6cd5\uff0c\u800c\u4e0d\u7528\u663e\u5f0f\u751f\u6210set\/get\u65b9\u6cd5\uff0c\u770b\u4e0b\u9762\u7684\u7b80\u5355\u7528\u6cd5\uff1a<\/p>\n
Kotlin<\/strong><\/span><\/div>\ndata class Person(var name: String?,var age: Int?)\r\n<\/pre>\n\u4ec5\u4ec5\u4f7f\u7528\u8fd9\u6837\u4e00\u884c\u4ee3\u7801\u5c31\u5b8c\u6210Model\u7c7b\u7684\u521b\u5efa\uff0cKotlin\u4f1a\u81ea\u52a8\u5e2e\u6211\u4eec\u751f\u6210set\/get\u65b9\u6cd5\uff0c\u6781\u5927\u5730\u7b80\u5316\u4e86Model\u7c7b\u7684\u7f16\u5199\u5de5\u4f5c\u3002\u4e0d\u8fc7\uff0cJava\u7a0b\u5e8f\u5458\u4e5f\u4e0d\u7528\u592a\u7fa1\u6155\uff0c\u5f88\u591aJava\u6846\u67b6\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u6bd4\u5982Google\u63a8\u51fa\u7684Auto Value\u6846\u67b6\u7b49\u7b49<\/p>\n
Operator Overloading<\/strong><\/div>\n\u8fd9\u4e2a\u7279\u6027\u5728Swift\u8bed\u8a00\u4e2d\u4e5f\u5b58\u5728\uff0c\u5728C++\u8bed\u8a00\u4e2d\u4e5f\u5b58\u5728\u3002\u8fd9\u4e2a\u7279\u6027\u662f\u4e00\u628a\u53cc\u5203\u5251\uff0c\u4f7f\u7528\u64cd\u4f5c\u7b26\u91cd\u8f7d\u53ef\u4ee5\u7b80\u5316\u4f7f\u7528\uff0c\u4e5f\u4f1a\u635f\u5931\u4e00\u4e9b\u4ee3\u7801\u53ef\u8bfb\u6027\u3002\u6240\u4ee5\uff0c\u5728\u4f7f\u7528\u64cd\u4f5c\u7b26\u91cd\u8f7d\u7684\u65f6\u5019\uff0c\u8bf7\u614e\u91cd\u8003\u8651\u3002<\/p>\n
\u5173\u4e8eKotlin\u8bed\u8a00\u7684\u7279\u6027\u4e00\u65f6\u534a\u4f1a\u4e5f\u8bf4\u4e0d\u5b8c\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u4e00\u4e9b\u6bd4\u8f83\u91cd\u8981\u7684\u7279\u6027\u548cJava\u8bed\u8a00\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u5bf9\u6bd4\uff1a<\/p>\n
\n\n
\n \u8bed\u8a00\u7279\u6027<\/strong><\/th>\n Kotlin<\/strong><\/th>\n Java<\/strong><\/th>\n<\/tr>\n<\/thead>\n\n \n Null Safe<\/td>\n \u652f\u6301<\/td>\n Java8\u652f\u6301<\/td>\n<\/tr>\n \n \u5168\u5c40\u51fd\u6570<\/td>\n \u652f\u6301<\/td>\n \u4e0d\u652f\u6301<\/td>\n<\/tr>\n \n Lambdas<\/td>\n \u652f\u6301<\/td>\n Java8\u652f\u6301<\/td>\n<\/tr>\n \n Extension<\/td>\n \u652f\u6301<\/td>\n \u4e0d\u652f\u6301<\/td>\n<\/tr>\n \n Data Class<\/td>\n \u652f\u6301<\/td>\n \u4e0d\u652f\u6301(\u9700\u8981\u4f9d\u8d56\u6846\u67b6)<\/td>\n<\/tr>\n \n Operator Overloading<\/td>\n \u652f\u6301<\/td>\n \u4e0d\u652f\u6301<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Java\u8bed\u8a00\u5b8c\u5168\u4e92\u901a<\/strong><\/div>\n\u4f60\u53ef\u80fd\u4f1a\u62c5\u5fc3\u4f7f\u7528Kotlin\u8bed\u8a00\u4e4b\u540e\uff0c\u4e4b\u524d\u7684Java\u4ee3\u7801\u600e\u4e48\u529e\u3002\u8fd9\u4e2a\u62c5\u5fc3\u662f\u5b8c\u5168\u591a\u4f59\u7684\uff0cJetBrains\u4fdd\u8bc1Kotlin\u548cJava\u8bed\u8a00\u53ef\u4ee5\u5b9e\u73b0\u5b8c\u5168\u5730\u4e92\u76f8\u8c03\u7528\uff0cKotlin\u6700\u7ec8\u4e5f\u4f1a\u7f16\u8bd1\u6210Java\u5b57\u8282\u7801\u3002<\/p>\n
Kotlin\u8bed\u8a00\u4f18\u52bf<\/strong><\/div>\n\u6709\u7f51\u53cb\u7edf\u8ba1\uff0c\u4f7f\u7528Kotlin\u8bed\u8a00\u5927\u7ea6\u53ef\u4ee5\u51cf\u5c1130%\u7684\u4ee3\u7801\u7f16\u5199\uff0c\u540c\u65f6\u4e5f\u4e0d\u7528\u518d\u62c5\u5fc3\u7a7a\u6307\u9488\u5f02\u5e38\uff0c\u7531\u4e8eJetBrains\u7684\u5929\u7136\u57fa\u56e0\uff0cKotlin\u53ef\u4ee5\u83b7\u5f97\u8f83\u597d\u7684\u7ef4\u62a4\u3001\u5347\u7ea7\u3002\u6700\u540e\uff0c\u5bf9\u4e8eOracle\u516c\u53f8\u5bf9Google\u7684\u9891\u7e41\u8bc9\u8bbc\uff0c\u8fd9\u4e5f\u7b97\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u8fd8\u51fb\u3002\u5728Kotlin\u8bed\u8a00\u53d1\u5e03\u4e4b\u540e\uff0c\u56fd\u5916\u5df2\u7ecf\u6709\u5f88\u591a\u5f00\u53d1\u4eba\u5458\u63a8\u51fa\u4e86\u5927\u91cf\u597d\u7528\u7684Kotlin\u6846\u67b6\uff0c\u4f60\u53ef\u4ee5\u4e0d\u7528\u91cd\u590d\u521b\u9020\u8f6e\u5b50\u3002\u540c\u65f6\uff0cKotlin\u8bed\u8a00\u53ef\u4ee5\u548cJava\u8bed\u8a00\u5b9e\u73b0\u65e0\u7f1d\u8fde\u63a5\uff0c\u4f60\u8fd8\u5728\u7b49\u4ec0\u4e48\u5462\uff1f<\/p>\n
\u5efa\u8bae<\/strong><\/div>\n\u5bf9\u4e8eKotlin\u8bed\u8a00\uff0c\u5927\u90e8\u5206\u5f00\u53d1\u4eba\u5458\u90fd\u5bf9Kotlin\u8bed\u8a00\u62b1\u6709\u79ef\u6781\u6001\u5ea6\u3002\u6211\u672c\u4eba\u4e5f\u975e\u5e38\u63a8\u5d07Kotlin\u8bed\u8a00\uff0c\u5982\u679c\u4f60\u719f\u6089\u7c7b\u4f3cPython,Ruby\u7b49\u811a\u672c\u8bed\u8a00\uff0c\u4ea6\u6216\u8005\u719f\u6089Swift\u8bed\u8a00\uff0cKotlin\u8bed\u8a00\u5c06\u662f\u4f60\u4e0d\u4e8c\u7684\u9009\u62e9\u3002\u800c\u5982\u679c\u4f60\u5df2\u7ecf\u538c\u5026\u4e86Java\u8bed\u8a00\u5197\u4f59\u7e41\u6742\u7684\u5199\u6cd5\uff0cKotlin\u8bed\u8a00\u4e5f\u975e\u5e38\u503c\u5f97\u4e00\u8bd5\uff0c\u76f8\u4fe1\u4f60\u4e5f\u4f1a\u50cf\u6211\u4e00\u6837\u7231\u4e0a\u8fd9\u95e8\u8bed\u8a00\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
\u4eceAndroid 7.0\u5f00\u59cb\uff0c\u8c37\u6b4c\u4f7f\u7528\u7684API\u4eceOracle JDK\u5207\u6362\u5230\u4e86open JDK\uff0c\u8fd9\u5bf9\u4e8e\u8c37\u6b4c\u6765\u8bf4\u662f […]<\/p>\n","protected":false},"author":323,"featured_media":84514,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-133137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/133137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=133137"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/133137\/revisions"}],"predecessor-version":[{"id":133249,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/133137\/revisions\/133249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/84514"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=133137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=133137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=133137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}