{"id":6614,"date":"2017-12-14T01:23:54","date_gmt":"2017-12-13T17:23:54","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6614"},"modified":"2017-12-14T11:38:47","modified_gmt":"2017-12-14T03:38:47","slug":"canvas-pixi-js-iphonex-colorful-wallpaper-background","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2017\/12\/canvas-pixi-js-iphonex-colorful-wallpaper-background\/","title":{"rendered":"canvas\u5b9e\u73b0iPhoneX\u70ab\u5f69\u58c1\u7eb8\u5c4f\u4fdd\u5916\u52a0pixi.js\u6d41\u4f53\u52a8\u6548"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6614\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6614<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u5f97\u5230\u539f\u4f5c\u8005\u4e66\u9762\u8bb8\u53ef\uff0c\u540c\u65f6\u4fdd\u7559\u539f\u4f5c\u8005\u548c\u51fa\u5904\uff0c\u6458\u8981\u5f15\u6d41\u5219\u968f\u610f\u3002<\/p>\n<h3>\u4e00\u3001iPhone X\u98ce\u683c\u70ab\u5f69\u58c1\u7eb8\u6548\u679c\u5148\u4f53\u9a8c<\/h3>\n<p>\u8fd9\u4e2a\u6548\u679c\u6211\u60f3\u5b9e\u73b0\u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u6700\u8fd1\u6392\u4e0a\u65e5\u7a0b\uff0c\u82b1\u65f6\u95f4\u7814\u7a76\u548c\u8bd5\u9a8c\u4e86\u4e0b\uff0c\u4e2a\u4eba\u89c9\u5f97\u6548\u679c\u8fd8\u884c\uff0c\u62ff\u51fa\u6765\u7ed9\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b\u3002<\/p>\n<p>\u968f\u4fbf\u622a\u51e0\u5f20\u6548\u679c\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-13_231947.jpg\" width=\"286\" height=\"562\" alt=\"iPhoneX\u70ab\u5f69\u58c1\u7eb8\u6548\u679c\u622a\u56fe1\" class=\"alignnone\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-13_232016.jpg\" width=\"286\" height=\"561\" alt=\"iPhoneX\u70ab\u5f69\u58c1\u7eb8\u6548\u679c\u622a\u56fe2\" class=\"alignnone\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-13_232026.jpg\" width=\"287\" height=\"560\" alt=\"iPhoneX\u70ab\u5f69\u58c1\u7eb8\u6548\u679c\u622a\u56fe3\" class=\"alignnone\" \/><\/p>\n<p>\u6bcf\u6b21\u5237\u65b0\u90fd\u4f1a\u968f\u673a\u751f\u6210\u4e00\u4e2a\u58c1\u7eb8\u3002<\/p>\n<p>Demo\u9875\u9762\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u7684\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201712\/iphonex-colorful-gradient-background.html\" rel=\"noopener\" target=\"_blank\">iPhoneX\u70ab\u5f69\u58c1\u7eb8\u80cc\u666fdemo\uff08\u542b\u52a8\u6548\uff09<\/a><\/p>\n<p>\u5982\u679c\u60a8\u7684\u6d4f\u89c8\u5668\u5f00\u542f\u4e86GPU\u52a0\u901f\uff0c\u5219\u53ef\u4ee5\u770b\u5230\u70ab\u5f69\u7684\u80cc\u666f\u5b9e\u9645\u4e0a\u662f\u5728\u4e0d\u65ad\u6d41\u52a8\u7684\u3002<\/p>\n<h3>\u4e8c\u3001\u5982\u4f55\u628a\u8fd9\u4e2a\u58c1\u7eb8\u6548\u679c\u7528\u5728\u81ea\u5df1\u9879\u76ee\u4e2d\uff1f<\/h3>\n<p>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u5f15\u5165\u6211\u5199\u7684JS\uff0c<a href=\"http:\/\/www.zhangxinxu.com\/study\/201712\/colorful-min.js\" rel=\"noopener\" target=\"_blank\">colorful-min.js<\/a>\uff1a<\/p>\n<pre>&lt;script src=\".\/colorful-min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>\u5f88\u5c0f\uff0c\u538b\u7f29\u5c313K\u591a\u70b9\u3002<\/p>\n<p>2. \u6839\u636eAPI\u8c03\u7528<code>colorfulBackground<\/code>\u65b9\u6cd5\uff0c\u4f8b\u5982demo\u9875\u9762\u7684\u8c03\u7528JS\uff1a<\/p>\n<pre>colorfulBackground({\n  container: document.getElementById('container'),\n  size: [800, 1600]  \n});<\/pre>\n<p>\u5b8c\u6574\u53ef\u7528API\u89c1\u4e0b\u8868\uff1a<\/p>\n<table border=\"0\" width=\"100%\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>API\u540d\u79f0<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u91ca\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>container<\/td>\n<td>document.body<\/td>\n<td>\u7528\u6765append canvas\u7ed8\u5236\u7684\u591a\u5f69\u58c1\u7eb8\u7684\u5bb9\u5668<\/td>\n<\/tr>\n<tr>\n<td>size<\/td>\n<td>[512, 512]<\/td>\n<td>\u7ed8\u5236\u7684canvas\u753b\u5e03\u7684\u5c3a\u5bf8\uff0c2\u4e2a\u503c\uff0c\u5206\u522b\u8868\u793a\u5bbd\u5ea6\u548c\u9ad8\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>grid<\/td>\n<td>[2, 3]<\/td>\n<td>canvas\u753b\u5e03\u4e0a\u7528\u6765\u663e\u793a\u8272\u5757\u7684\u683c\u6805\u533a\u57df\uff0c2\u4e2a\u503c\uff0c\u5206\u522b\u8868\u793a\u6a2a\u5411\u5206\u9694\u548c\u7eb5\u5411\u5206\u9694\u3002<\/td>\n<\/tr>\n<tr>\n<td>backgroundColor<\/td>\n<td>#E0DEE6<\/td>\n<td>\u753b\u5e03\u80cc\u666f\u8272\uff0c\u9ed8\u8ba4\u4e3a\u6d45\u8272<\/td>\n<\/tr>\n<tr>\n<td>colors<\/td>\n<td>[&#8216;#F24592&#8217;, &#8216;#36129A&#8217;, &#8216;#FDFB39&#8217;, &#8216;#5DB7EE&#8217;, &#8216;#E74C45&#8217;, &#8216;#E5243F&#8217;]<\/td>\n<td>\u591a\u5f69\u58c1\u7eb8\u4f7f\u7528\u7684\u989c\u8272\u4eec\uff0c\u989c\u8272\u4e0e\u683c\u6805\u533a\u57df\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\u3002<\/td>\n<\/tr>\n<tr>\n<td>animation<\/td>\n<td>true<\/td>\n<td>\u662f\u5426\u4f7f\u7528\u6d41\u5149\u6ea2\u5f69\u7684\u52a8\u753b\u6548\u679c\uff08\u5982\u679ctrue\uff0c\u5219\u9700\u8981\u52a0\u8f7dpixi.js\u8d44\u6e90\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u6211\u4eec\u53ea\u8981\u4e00\u4e2a\u9759\u6001\u7684\u6d41\u5149\u6ea2\u5f69\u7684\u58c1\u7eb8\uff0c\u5219\u4e0a\u9762JS\u5c31\u5df2\u7ecf\u8db3\u591f\u4e86\u5916\u52a0\u8bbe\u7f6e<code>animation<\/code>\u4e3a<code>false<\/code>\u5373\u53ef\u3002\u5408\u8d77\u6765JS\u793a\u610f\uff1a<\/p>\n<pre>&lt;script src=\".\/colorful-min.js\"&gt;&lt;\/script&gt;\n&lt;script&gt;\ncolorfulBackground({\n  container: document.getElementById('container'),\n  animation: false,\n  size: [800, 1600]  \n});\n&lt;\/script&gt;<\/pre>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5e0c\u671b\u548cdemo\u4e00\u6837\uff0c\u8272\u5f69\u8981\u4e0d\u65ad\u6d41\u6dcc\u4ea4\u878d\uff0c\u5219\u9700\u8981\u5f15\u5165<code>pixi.js<\/code>\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;script src=\"https:\/\/cdn.bootcss.com\/pixi.js\/4.6.2\/pixi.min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>\u5176\u4ed6\u4efb\u4f55\u8d44\u6e90\u90fd\u4e0d\u9700\u8981\u52a0\u8f7d\uff0c\u4e5f\u4e0d\u9700\u8981\u989d\u5916\u8bed\u53e5\uff0c\u53ea\u8981\u5728\u8c03\u7528\u4e4b\u524d\u5f15\u5165\u5373\u53ef\u3002<\/p>\n<h3>\u4e09\u3001iPhoneX\u7eda\u4e3d\u58c1\u7eb8\u80cc\u666f\u4ee5\u53ca\u52a8\u6548\u7684\u5b9e\u73b0\u539f\u7406<\/h3>\n<h4>1. iPhoneX\u7eda\u4e3d\u58c1\u7eb8\u5b9e\u73b0\u539f\u7406<\/h4>\n<p>\u4f7f\u7528canvas\u7ed8\u5236\u7684\u3002<\/p>\n<p><strong>\u9996\u5148<\/strong>\uff0c\u6839\u636egrid\u628a\u6211\u4eec\u7684\u753b\u5e03\u5206\u6210\u82e5\u5e72\u533a\u57df\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-14_003508.png\" width=\"256\" height=\"381\" alt=\"\u533a\u57df\u5212\u5206\" class=\"alignnone\" \/><\/p>\n<p><strong>\u7136\u540e<\/strong>\u6cbf\u7740\u56db\u5468\u533a\u57df\uff0c\u521b\u5efa\u5c71\u5cf0\u5f62\u72b6\u7684\u8d1d\u585e\u5c14\u66f2\u7ebf\uff0c\u66f2\u7ebf\u4f4d\u7f6e\u5747\u671d\u5411\u753b\u5e03\u7684\u4e2d\u5fc3\uff0c\u793a\u610f\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-14_003509.png\" width=\"256\" height=\"381\" alt=\"\u4ee5\u533a\u57df\u4e3a\u5927\u81f4\u5750\u6807\u521b\u5efa\u4e8c\u6b21\u8d1d\u585e\u5c14\u66f2\u7ebf\" class=\"alignnone\" \/><\/p>\n<p>\u5982\u679c\u5bf9\u8d1d\u585e\u5c14\u66f2\u7ebf\u4e0d\u4e86\u89e3\u4e86\u53ef\u53c2\u8003\u6211\u4e4b\u524d\u7684\u6587\u7ae0\uff1a\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2014\/06\/deep-understand-svg-path-bezier-curves-command\/\" rel=\"noopener\">\u6df1\u5ea6\u638c\u63e1SVG\u8def\u5f84path\u7684\u8d1d\u585e\u5c14\u66f2\u7ebf\u6307\u4ee4<\/a>\u201d<\/p>\n<p>\u5f53\u7136\uff0c\u5b9e\u9645\u521b\u5efa\u7684\u65f6\u5019\uff0c\u65e0\u8bba\u662f\u4f4d\u7f6e\u8fd8\u662f\u9ad8\u5ea6\u7684\u968f\u673a\u6027\u90fd\u8981\u6bd4\u4e0a\u9762\u793a\u610f\u56fe\u9ad8\u5f88\u591a\uff0c\u4f8b\u5982\uff0c\u4e0b\u56fe\u5c31\u662f\u4e00\u4e2a\u5b9e\u9645\u5448\u73b0\u6548\u679c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-14_004317.png\" width=\"259\" height=\"509\" alt=\"\u4f7f\u7528\u8d1d\u8d5b\u5c14\u66f2\u7ebf\u521b\u5efa\u540e\u7684\u6548\u679c\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u6700\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u7cca\u6de1\u5316\u8fb9\u7f18\u7ec6\u8282\uff0c\u6548\u679c\u5c31\u8fbe\u6210\u4e86\uff0c\u5982\u4e0b\u5bf9\u5e94\u622a\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-14_004557.jpg\" width=\"257\" height=\"509\" alt=\"\u5e94\u7528\u9ad8\u65af\u6a21\u7cca\u540e\u7684\u6548\u679c\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u7531\u4e8e\u8272\u5757\u533a\u57df\u5c3a\u5bf8\u548c\u4f4d\u7f6e\u521b\u5efa\u90fd\u662f\u968f\u673a\u7684\uff0c\u56e0\u6b64\u6211\u6bcf\u6b21\u5237\u65b0\u6211\u4eec\u5f97\u5230\u7684\u80cc\u666f\u56fe\u90fd\u662f\u552f\u4e00\u4e0d\u91cd\u590d\u7684\u3002<\/p>\n<h4>2. iPhoneX\u7eda\u4e3d\u58c1\u7eb8\u52a8\u6548\u5b9e\u73b0\u539f\u7406<\/h4>\n<p>\u4e0a\u9762\u4ecb\u7ecd\u7684\u662f\u9759\u6001\u6548\u679c\u5b9e\u73b0\u539f\u7406\uff0c\u90a3\u52a8\u6001\u6db2\u4f53\u626d\u66f2\u6d41\u6dcc\u6548\u679c\u53c8\u662f\u600e\u4e48\u5b9e\u73b0\u7684\u5462\uff1f<\/p>\n<p>\u672c\u8d28\u4e0a\u662f\u4f7f\u7528\u7684webGL\u6280\u672f\uff0c\u4f46webGL\u6211\u4e4b\u524d\u5e76\u6ca1\u6709\u5b66\u4e60\u8fc7\uff0c\u4ec5\u77e5\u9053\u4e9b\u76ae\u6bdb\uff0c\u65e0\u6cd5\u5e94\u4ed8\u8fd9\u6837\u7684\u6548\u679c\u5b9e\u73b0\u3002\u4e8e\u662f\u6211\u5c31\u6c42\u52a9\u4e1a\u754c\u4e00\u4e9b\u5f00\u6e90\u6846\u67b6\uff0c\u9875\u9762webGL\u5f00\u53d1\u6846\u67b6\u6709\u4f8b\u5982three.js, Babylon.js\u4ee5\u53ca\u8fd9\u91cc\u4f7f\u7528pixi.js\u7b49\u3002<\/p>\n<p>\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662fpixi.js\uff0c\u5b98\u7f51\u5730\u5740\uff1a<a href=\"http:\/\/www.pixijs.com\/\" rel=\"nofollow\" target=\"_blank\">http:\/\/www.pixijs.com\/<\/a><\/p>\n<p>pixi.js\u867d\u7136\u5e95\u5c42\u4f7f\u7528webGL\uff0c\u4f46\u4e3b\u8981\u9762\u5411\u7684\u8fd8\u662f\u5b9e\u73b02D\u52a8\u6548\uff0c\u5bf9\u4e8e\u4e0d\u652f\u6301webGl\u6d4f\u89c8\u5668\u53ef\u4ee5\u81ea\u52a8\u964d\u7ea7\u4f7f\u75282D canvas API\u5b9e\u73b0\uff0c\u8ddf\u6211\u8fd9\u91cc\u7684\u9700\u6c42\u66f4\u7b26\u5408\u4e00\u4e9b\u3002<\/p>\n<p>pixi.js\u672c\u8eab\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6ee4\u955c\u6548\u679c\uff0c\u53ef\u4ee5\u65b9\u4fbf\u7684\u5b9e\u73b0\u8bf8\u5982\u6c34\u6ce2\uff0c\u6d41\u52a8\uff0c\u70df\u96fe\u7b49\u6548\u679c\uff0c\u5c24\u5176\u662f\u7528\u56fe\u7247\u4f5c\u4e3a\u6ee4\u955c\u7d20\u6750\u7684\u65f6\u5019\uff0c\u5176\u5b9e\u6709\u5f88\u591a\u66f4\u9177\u7684\u6548\u679c\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u672cdemo\u4e2d\u7684\u6d41\u52a8\u5c31\u662f\u501f\u52a9\u4e86\u4e0b\u9762\u7684\u7d20\u6750\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u5728illustrator\u4e2d\u7ed8\u5236\u4e86\u4e0b\u9762\u7684\u4e0d\u89c4\u5219\u533a\u57df\u5f62\u72b6\uff08\u91cd\u8981\u7684\u662f\u66f2\u7ebf\u8fb9\u7f18\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-14_005803.png\" width=\"492\" height=\"457\" alt=\"illustrator\u4e2d\u7ed8\u5236\u7684\u4e0d\u89c4\u5219\u5f62\u72b6\" class=\"alignnone\" \/><\/p>\n<p>\u7136\u540e\u53e6\u5b58\u4e3aSVG\u6587\u4ef6\uff0c\u83b7\u53d6\u6bcf\u4e2a\u5f62\u72b6\u7684\u8def\u5f84\uff0c\u7136\u540e\u7ed8\u5236\u5728canvas\u753b\u5e03\u4e0a\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>['M125-51c0,0-72.5,150...-51z', 'M505,...151.5z', 'M1950,...132z', 'M633....451z', 'M-347.5....889.395z', 'M12...102.931z'].forEach(function (path) {\n    var path2d = new Path2D(path);\n    context.fillStyle = 'rgba(0,0,0,'+ Math.random() +')';\n    context.filter = 'blur(30px)';\n    context.fill(path2d);\n});<\/pre>\n<p>\u6b64\u65f6\u6211\u4eec\u7684canvas\u753b\u5e03\u56fe\u7247\u5c31\u53ef\u4ee5\u4f5c\u4e3a\u6ee4\u955c\u7d20\u6750\u56fe\u7247\u4e86\uff0c\u501f\u52a9DisplacementMapFilter\uff0cpixi\u4f1a\u81ea\u52a8\u6839\u636e\u660e\u6697\u5bf9\u6bd4\u8fdb\u884c\u6ee4\u955c\u5316\u5904\u7406\u3002<\/p>\n<p>\u6b64\u65f6\uff0c\u5c31\u53ef\u4ee5\u5229\u7528pixi\u7684ticker\u4e0d\u65ad\u5bf9\u6ee4\u955c\u7d20\u6750\u56fe\u7247\u8fdb\u884c\u65cb\u8f6c\uff0c\u6211\u4eec\u7684\u52a8\u6548\u5c31\u6709\u4e86\u3002<\/p>\n<p><strong>\u8865\u5145\u8bf4\u660e<\/strong><\/p>\n<p>\u7531\u4e8e\u8fd9\u4e2a\u7279\u6548\u672c\u8eab\u5e26\u6709\u6db2\u5316\u548c\u626d\u66f2\uff0c\u56e0\u6b64\u753b\u5e03\u7684\u8fb9\u7f18\u662f\u4e0d\u89c4\u5219\u7684\uff0c\u6709\u53ef\u80fd\u662f\u900f\u660e\u9542\u7a7a\u7684\uff0c\u56e0\u6b64\uff0c\u5b9e\u9645\u4e0a\u6211\u4eec\u7684\u753b\u5e03\u5927\u5c0f\u9700\u8981\u8bbe\u7f6e\u6bd4\u53ef\u662f\u7a97\u53e3\u8981\u5927\u4e00\u4e9b\uff0c\u7528\u6765\u9690\u85cf\u4e0d\u9700\u8981\u7684\u8fb9\u7f18\u7ec6\u8282\u3002<\/p>\n<h3>\u56db\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u672c\u6587\u7684\u6548\u679c\u867d\u7136\u770b\u4e0a\u53bb\u5f88\u96be\u5b9e\u73b0\uff0c\u5b9e\u9645\u4e0a\u786e\u5b9e\u662f\u5f88\u96be\u5b9e\u73b0\uff0c\u867d\u7136\u4ece\u4ee3\u7801\u91cf\u4e0a\u6765\u770b\u5c31\u90a3\u4e48\u70b9\u4ee3\u7801\uff0c\u6bd4\u5e73\u65f6\u5199\u4e2a\u7b80\u5355\u7684UI\u7ec4\u4ef6\u4ee3\u7801\u8fd8\u5c11\uff0c\u4f46\u662f\u5374\u9700\u8981\u5f88\u591a\u5728\u56fe\u5f62\u4ee5\u53ca\u53ef\u89c6\u5316\u9886\u57df\u6709\u5f88\u591a\u79ef\u7d2f\u3002\u8981\u662f\u4e00\u4e24\u5e74\u524d\u7684\u81ea\u5df1\u4f30\u8ba1\u4e5f\u6ca1\u6709\u4ec0\u4e48\u5b9e\u73b0\u601d\u8def\u3002<\/p>\n<p>\u5c31\u8fd9\u6837\u6162\u6162\u79ef\u7d2f\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\uff0c\u5982canvas API\uff0c\u8d1d\u585e\u5c14\u66f2\u7ebf\uff0c\u6570\u5b66\u51fd\u6570\u7b49\uff0c\u6700\u540e\uff0c\u770b\u5230\u4e00\u4e9b\u6548\u679c\u7684\u65f6\u5019\u8111\u4e2d\u81ea\u7136\u5c31\u6709\u4e86\u5b9e\u73b0\u7684\u60f3\u6cd5\u3002<\/p>\n<p>\u51b0\u51bb\u4e09\u5c3a\u975e\u4e00\u65e5\u4e4b\u5bd2\u3002<\/p>\n<p>\u5927\u5bb6\u5b66\u4e60\u524d\u7aef\u5176\u5b9e\u4e5f\u662f\u7c7b\u4f3c\u7684\uff0c\u6162\u6162\u5b66\u4e60\uff0c\u4e0d\u65ad\u79ef\u7d2f\uff0c\u6bcf\u5929\u6210\u957f\uff0c\u5047\u4ee5\u65f6\u65e5\u56de\u8fc7\u5934\u6765\u4e00\u770b\uff0c\u5367\u69fd\uff0c\u6211\u4ec0\u4e48\u65f6\u5019\u6210\u4e86\u524d\u7aef\u754c\u7684\u6280\u672f\u6760\u628a\u5b50\u4e86\uff01<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u7684\u662f\u6211\u7684\u5b9e\u73b0\u65b9\u6cd5\u548c\u539f\u7406\u4e0d\u4e00\u5b9a\u662f\u6700\u597d\u7684\uff0c\u4e5f\u6b22\u8fce\u6709\u5176\u4ed6\u66f4\u597d\u60f3\u6cd5\u548c\u5b9e\u73b0\u7684\u5c0f\u4f19\u4f34\u4e00\u8d77\u5206\u4eab\u4f60\u7684\u89c1\u89e3\u3002<\/p>\n<p>\u5c31\u8fd9\u4e9b\uff0c\u611f\u8c22\u9605\u8bfb\uff01<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201611\/14.png\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6614\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6614<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iPhone X\u624b\u673a\u9ed8\u8ba4\u7684\u58c1\u7eb8\u662f\u4e00\u4e2a\u975e\u5e38\u7eda\u4e3d\u591a\u5f69\u7684\u6548\u679c\uff0c\u5b9e\u9645\u4e0a\u6211\u4eec\u4f7f\u7528\u4ee3\u7801\u4e5f\u80fd\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\uff0c\u5e76\u4e14\u989c\u8272\u53ef\u4ee5\u5b9a\u5236\uff0c\u751a\u81f3\u6211\u4eec\u53ef\u4ee5\u52a0\u4e00\u4e9b\u52a8\u6548\uff0c\u6bd4\u5982\u8bf4\u5b83\u7684\u989c\u8272\u50cf\u6c34\u4e00\u6837\u7684\u4e0d\u65ad\u7684\u6d41\u52a8\u6d41\u6dcc\uff0c\u50cf\u4e91\u96fe\u4e00\u6837\u7ffb\u817e\u3002<\/p>\n<p>\u672c\u6587\u5c06\u901a\u8fc7\u5b9e\u9645\u6848\u4f8b\u7684\u65b9\u5f0f\u5c55\u793a\u8fd9\u79cd\u6548\u679c\uff0c\u540c\u65f6\u4ecb\u7ecd\u5982\u4f55\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u6548\u679c\uff0c\u4ee5\u53ca\u5b83\u5b9e\u73b0\u7684\u539f\u7406\u3002\u5e0c\u671b\u672c\u6587\u7684\u5185\u5bb9\u80fd\u591f\u5bf9\u60a8\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[896],"tags":[53,368,1167,1194,1193,1060,859,886],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6614"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=6614"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6614\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=6614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=6614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=6614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}