{"id":7635,"date":"2018-06-03T23:36:25","date_gmt":"2018-06-03T15:36:25","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=7635"},"modified":"2018-06-03T23:42:35","modified_gmt":"2018-06-03T15:42:35","slug":"js-canny-edge-photo-image-to-line","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/06\/js-canny-edge-photo-image-to-line\/","title":{"rendered":"JS\u5b9e\u73b0\u7167\u7247\u56fe\u7247\u53d8\u6210\u9ed1\u767d\u7ebf\u6761\u7ebf\u7a3f"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=7635\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=7635<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u8981\u540c\u65f6\u4fdd\u7559\u539f\u4f5c\u8005\u548c\u51fa\u5904\u3002<\/p>\n<h3>\u4e00\u3001\u5f69\u8272\u56fe\u53d8\u6210\u6f2b\u753b\u7ebf\u6761\u6548\u679c\u9884\u89c8<\/h3>\n<p>\u6548\u679c\u5982\u4e0b\uff0c\u4eba\u7269\u6444\u5f71\u7167\u7247\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/2018-06-03_221233.png\" width=\"530\" height=\"204\" alt=\"\u7167\u7247\u53d8\u6210\u7ebf\u6761\" class=\"alignnone\" \/><\/p>\n<p>\u6241\u5e73\u5316\u7684\u7ed8\u5236\u56fe\u5f62\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/2018-06-03_221313.png\" width=\"492\" height=\"375\" alt=\"CSS\u4e16\u754c\u622a\u56fe\u53d8\u6210\u7ebf\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u82e5\u60f3\u81ea\u5df1\u4f53\u9a8c\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201806\/image-to-be-line.html\" rel=\"noopener\" target=\"_blank\">JS\u56fe\u7247\u53d8\u6210\u7ebf\u6761\u56fe\u7247demo<\/a><\/p>\n<p>\u70b9\u51fbdemo\u9875\u9762\u4e2d\u8fd9\u4e2a\u201c\u66f4\u6362\u56fe\u7247\u201d\u6309\u94ae\uff0c\u53ef\u4ee5\u9009\u62e9\u672c\u5730\u56fe\u7247\uff0c\u4f53\u9a8c\u7ebf\u56fe\u6548\u679c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/2018-06-03_221824.png\" width=\"430\" height=\"452\" alt=\"demo\u6362\u56fe\u7247\u793a\u610f\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<h3>\u4e8c\u3001\u56fe\u7247\u53d8\u7ebf\u7a3f\u5b9e\u73b0\u7684\u539f\u7406<\/h3>\n<p>\u91c7\u7528canny\u7b97\u6cd5\u5bf9\u56fe\u50cf\u7684\u8fb9\u7f18\u8fdb\u884c\u68c0\u6d4b\u3002Canny\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u662fJohn F. Canny\u4e8e 1986 \u5e74\u5f00\u53d1\u51fa\u6765\u7684\u4e00\u4e2a\u591a\u7ea7\u8fb9\u7f18\u68c0\u6d4b\u7b97\u6cd5\u3002\u622a\u6b622014\u5e748\u6708, Canny\u53d1\u8868\u7684\u8be5\u7bc7\u8bba\u6587\uff0c\u5df2\u88ab\u5f15\u752819000\u4f59\u6b21\u3002<\/p>\n<p>\u5177\u4f53\u8be5\u7b97\u6cd5\u5b9e\u73b0\u539f\u7406\u53ef\u4ee5\u53c2\u89c1\u6b64<a href=\"https:\/\/baike.baidu.com\/item\/canny%E7%AE%97%E6%B3%95\" rel=\"noopener\" target=\"_blank\">\u767e\u79d1<\/a>\u3002<\/p>\n<h3>\u4e09\u3001\u56fe\u50cf\u7684\u8fb9\u7f18\u68c0\u6d4b\u5728web\u4e2d\u7684\u5177\u4f53\u5b9e\u73b0<\/h3>\n<p>\u5173\u4e8e\u56fe\u50cf\u5904\u7406\u7684\u5f88\u591a\u7ecf\u5178\u7b97\u6cd5\uff0c\u5df2\u7ecf\u6709\u5f88\u591a\u524d\u8f88\u5728JS\u4e2d\u5b9e\u73b0\u4e86\u3002\u4f8b\u5982\uff0c\u4eba\u8138\u8bc6\u522b(Face recognition)\uff0c\u5149\u6d41(Optical flow)\uff0c\u89d2\u70b9\u68c0\u6d4b\u7b49\u3002<\/p>\n<p>\u51e0\u4e2a\u6bd4\u8f83\u6709\u540d\u7684\u9879\u76eeJS\u89c1\u4e0b\u8868\uff08\u9644\u5e26\u4eba\u8138\u68c0\u6d4b\u4e00\u4e9b\u6570\u636e\uff09\uff1a<\/p>\n<table  width=\"100%\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>Chrome 40 \/ FF 35<\/th>\n<th align=\"center\">Detections per Second<\/th>\n<th align=\"center\">Detections<\/th>\n<th align=\"center\">Seconds<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/github.com\/mtschirs\/js-objectdetect\">js-objectdetect<\/a><\/td>\n<td align=\"center\"><strong>17.5<\/strong> \/ <strong>16.9<\/strong><\/td>\n<td align=\"center\">50 \/ 50<\/td>\n<td align=\"center\">2.86 \/ 2.96<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/inspirit\/jsfeat\">jsfeat<\/a><sup>1<\/sup><\/td>\n<td align=\"center\">9.4 \/ 6.3<\/td>\n<td align=\"center\">30 \/ 30<\/td>\n<td align=\"center\">3.18 \/ 4.75<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/eduardolundgren\/tracking.js\">tracking.js<\/a><\/td>\n<td align=\"center\">7.7 \/ 8.97<\/td>\n<td align=\"center\">48 \/ 48<\/td>\n<td align=\"center\">6.24 \/ 5.35<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/www.beyond-reality-face.com\/\" rel=\"nofollow\">Beyond Reality Face<\/td>\n<td align=\"center\">7.4 \/ 1.7<\/td>\n<td align=\"center\">41 \/ 41<\/td>\n<td align=\"center\">5.50 \/ 23.98<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/liuliu\/ccv\">CCV<\/a><sup>2<\/sup><\/td>\n<td align=\"center\">2.2 \/ 4.4<\/td>\n<td align=\"center\">8 \/ 8<\/td>\n<td align=\"center\">2.22 \/ 1.80<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table  width=\"100%\" class=\"params_table mt20\" cellspacing=\"1\">\n<thead>\n<tr>\n<th align=\"center\"><a href=\"https:\/\/github.com\/mtschirs\/js-objectdetect\">js-objectdetect<\/a><\/th>\n<th align=\"center\"><a href=\"https:\/\/github.com\/eduardolundgren\/tracking.js\">tracking.js<\/a><\/th>\n<th align=\"center\"><a href=\"https:\/\/github.com\/inspirit\/jsfeat\">jsfeat<\/a><sup>1<\/sup><\/th>\n<th align=\"center\"><a href=\"https:\/\/www.beyond-reality-face.com\/\" rel=\"nofollow\">Beyond Reality Face<\/a><sup>2<\/sup><\/th>\n<th align=\"center\"><a href=\"https:\/\/github.com\/liuliu\/ccv\">CCV<\/a><sup>3<\/sup><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/face-d1.png\" height=\"80\" width=\"80\" style=\"max-width:100%;\"><\/td>\n<td align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/face-d2.png\" height=\"80\" width=\"80\" style=\"max-width:100%;\"><\/td>\n<td align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/face-d3.png\" height=\"80\" width=\"80\" style=\"max-width:100%;\"><\/td>\n<td align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/face-d4.png\" height=\"80\" width=\"80\" style=\"max-width:100%;\"><\/td>\n<td align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/face-d5.png\" height=\"80\" width=\"80\" style=\"max-width:100%;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><sup>1<\/sup>\u4e5f\u5305\u62ec<a href=\"https:\/\/github.com\/auduno\/clmtrackr\">auduno\/clmtrackr<\/a>, <a href=\"https:\/\/github.com\/wallarelvo\/camgaze.js\">camgaze.js<\/a>\u3002\u57fa\u4e8e\u8001\u7248\u672c\u7684<a href=\"https:\/\/github.com\/mtschirs\/js-objectdetect\">js-objectdetect<\/a>\u3002<\/p>\n<p><sup>2<\/sup>\u4e5f\u5305\u62ec<a href=\"https:\/\/github.com\/jaysalvat\/jquery.facedetection\">jquery.facedetection<\/a>, <a href=\"https:\/\/github.com\/neave\/face-detection\">neave\/face-detection<\/a>, <a href=\"https:\/\/github.com\/wesbos\/HTML5-Face-Detection\">wesbos\/HTML5-Face-Detection<\/a>, <a href=\"https:\/\/github.com\/auduno\/headtrackr\">auduno\/headtrackr<\/a>\u3002<\/p>\n<p>\u4e0d\u540c\u7684JS\u9879\u76ee\u5bf9\u4e8e\u56fe\u50cf\u5904\u7406\u7684\u4fa7\u91cd\u70b9\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p>\u5bf9\u4e8e\u672c\u6587\u5c55\u793a\u7684\u9ed1\u767d\u7ebf\u7a3f\u6548\u679c\uff0c<strong>\u6211\u4f7f\u7528\u7684\u662fjsfeat<\/strong>\u3002<\/p>\n<p>jsfeat\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/inspirit\/jsfeat\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/inspirit\/jsfeat<\/a><\/p>\n<p>\u5176\u6587\u6863\u662f\u51e0\u4e2a\u9879\u76ee\u4e2d\u6211\u89c9\u5f97\u505a\u5f97\u6700\u597d\u7684\uff0c\u4e0a\u624b\u8981\u6700\u5bb9\u6613\u3002<\/p>\n<p>jsfeat.js\u4e2d\u5185\u7f6e\u4e86canny\u8fb9\u7f18\u68c0\u6d4b\u5904\u7406\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff0c\u4f46\u4e5f\u6ca1\u5230\u4e00\u884c\u4ee3\u7801\u5c31\u51fa\u7ed3\u679c\u90a3\u4e48\u7b80\u5355\u3002<\/p>\n<p>\u5927\u81f4\u4f7f\u7528\u6b65\u9aa4\u548c\u5b9e\u73b0\u539f\u7406\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5f15\u7528jsfeat.js\uff0c\u5982\u4e0b\uff1a\n<pre>&lt;script src=\".\/jsfeat-min.js\"&gt;&lt;\/script&gt;<\/pre>\n<\/li>\n<li>\u501f\u52a9canvas\u8bfb\u53d6\u56fe\u7247\u50cf\u7d20\u4fe1\u606f\uff1a\n<pre>context.drawImage(img, 0, 0, width, height);\nvar imageData = context.getImageData(0, 0, width, height);<\/pre>\n<\/li>\n<li>\u5bf9\u56fe\u7247\u50cf\u7d20\u4fe1\u606f\u8fdb\u884c\u8fb9\u7f18\u67e5\u627e\u7b97\u6cd5\u5904\u7406\u3002\u5b9e\u73b0\u8981\u5206\u4e3a3\u6b65\uff1a1. \u7070\u5ea6 2. \u9ad8\u65af\u6a21\u7cca 3. canny\u8fb9\u7f18\u68c0\u6d4b\u3002\u8fd9\u6837\u624d\u80fd\u83b7\u5f97\u7ed3\u679c\u8f83\u597d\u7684\u56fe\u50cf\u8fb9\u7f18\u4fe1\u606f\uff0c\u8fd9\u4e9b\u8fb9\u7f18\u5c31\u662f\u6211\u4eec\u9700\u8981\u7684\u56fe\u7247\u4e2d\u7684\u91cd\u8981\u7ebf\u6761\u3002\n<pre><span style=\"color:green;\">\/\/ \u7528\u6765\u8bb0\u5f55\u5b58\u50a8\u5904\u7406\u7684\u56fe\u7247\u6570\u636e\u5bf9\u8c61<\/span>\nvar img_u8 = new jsfeat.matrix_t(width, height, jsfeat.U8C1_t);<\/span>\n<span style=\"color:green;\">\/\/ \u7070\u5ea6<\/span>\njsfeat.imgproc.grayscale(imageData.data, width, height, img_u8);\n<span style=\"color:green;\">\/\/ \u9ad8\u65af\u6a21\u7cca<\/span>\njsfeat.imgproc.gaussian_blur(img_u8, img_u8, 6, 0);\n<span style=\"color:green;\">\/\/ canny\u8ba1\u7b97<\/span>\njsfeat.imgproc.canny(img_u8, img_u8, 20, 50);<\/pre>\n<\/li>\n<li><code>img_u8<\/code>\u4e2d\u7684\u6570\u636e\u6b64\u65f6\u5c31\u662f\u56fe\u50cf\u8fb9\u7f18\u6570\u636e\uff0c\u7136\u540e\u6539\u53d8<code>imageData<\/code>\u6570\u636e\u5e76\u5199\u5165canvas\uff0c\u6700\u7ec8\u7684\u6548\u679c\u5c31\u5728web\u4e0a\u5448\u73b0\u4e86\u3002<\/li>\n<\/ol>\n<h4>\u5982\u679c\u6211\u5bf9\u539f\u7406\u4e0d\u611f\u5174\u8da3\uff0c\u53ea\u60f3\u5b9e\u73b0\u6548\u679c\uff1f<\/h4>\n<p>\u5982\u679c\u5927\u5bb6\u53ea\u60f3\u5728\u81ea\u5df1\u9879\u76ee\u4e2d\u5feb\u901f\u6709\u6548\u679c\uff0c\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u8fdb\u5165demo\u9875\u9762\uff0c\u5de6\u4fa7\u53ef\u4ee5\u770b\u5230\u6e90\u4ee3\u7801\uff0c\u91cc\u9762\u6709\u4e2a\u540d\u4e3a<code>fnCannyEdge()<\/code>\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u56fe\u7247\u53d8\u7ebf\u7a3f\u7684\u5173\u952e\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u6211\u4eec\u7684\u5b9e\u73b0\u6b65\u9aa4\u53d8\u6210\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<ol>\n<li>\u5f15\u7528jsfeat.js\uff0c\u5982\u4e0b\uff1a\n<pre>&lt;script src=\".\/jsfeat-min.js\"&gt;&lt;\/script&gt;<\/pre>\n<\/li>\n<li>\u7c98\u8d34<code>fnCannyEdge()<\/code>\u7684\u65b9\u6cd5\u4ee3\u7801\uff1b<\/li>\n<li>\u628a\u56fe\u7247DOM\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\u4f20\u8fdb\u53bb\uff0c\u4f8b\u5982\uff1a\n<pre>fnCannyEdge(img, canvas);<\/pre>\n<p>\u6548\u679c\u5373\u8fbe\u6210\uff01<\/li>\n<\/ol>\n<p><strong>fnCannyEdge\u8bed\u6cd5\u548cAPI<\/strong><\/p>\n<p>\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>fnCannyEdge(source, canvas, options);<\/pre>\n<p>\u5176\u4e2d\uff1a<\/p>\n<dl>\n<dt>source<\/dt>\n<dd>\u8868\u793a\u9700\u8981\u8f6c\u6362\u7684\u8d44\u6e90\uff0c\u53ef\u4ee5\u662f\u56fe\u7247<code>&lt;img&gt;<\/code> DOM\u5143\u7d20\uff0c\u4e5f\u53ef\u4ee5\u662f\u89c6\u9891<code>&lt;video&gt;<\/code> DOM\u5143\u7d20\u3002\u6b64\u53c2\u6570\u5fc5\u987b\u3002<\/dd>\n<dt>canvas<\/dt>\n<dd>\u8868\u793a\u9700\u8981\u5448\u73b0\u6700\u7ec8\u8f6c\u6362\u7ed3\u679c\u7684canvas\u5143\u7d20\u3002\u6b64\u53c2\u6570\u5fc5\u987b\u3002<\/dd>\n<dt>options<\/dt>\n<dd>\u53ef\u9009\u53c2\u6570\u3002\u5177\u4f53\u5982\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>blur_radius<\/td>\n<td>2<\/td>\n<td>\u6a21\u7cca\u534a\u5f84\u5927\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>low_threshold<\/td>\n<td>20<\/td>\n<td>\u8868\u793a\u8fb9\u7f18\u68c0\u6d4b\u7684\u4f4e\u9608\u503c<\/td>\n<\/tr>\n<tr>\n<td>high_threshold<\/td>\n<td>50<\/td>\n<td>\u8868\u793a\u8fb9\u7f18\u68c0\u6d4b\u7684\u9ad8\u9608\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/dd>\n<\/dl>\n<p><code>fnCannyEdge()<\/code>\u4e2d\u8fd8\u5305\u542b\u4e86\u4e00\u6bb5512 * 512\u6700\u5927\u5c3a\u5bf8\u7684\u9650\u5236\uff08\u89c1\u4e0b\u56fe\uff09\uff0c\u56e0\u4e3ademo\u9875\u9762\u9009\u62e9\u56fe\u7247\u53ef\u80fd\u5f88\u5927\uff0c\u5b9e\u9645\u5f00\u53d1\u4e0d\u4e00\u5b9a\u7528\u5f97\u5230\uff0c\u5230\u65f6\u5019\u81ea\u884c\u5224\u65ad\u8981\u4e0d\u8981\u5220\u6389\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201806\/2018-06-03_230850.png\" width=\"565\" height=\"296\" alt=\"\u6700\u5927\u9ad8\u5bbd\u663e\u793a\u4ee3\u7801\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<h3>\u56db\u3001 \u7ed3\u675f\u8bed<\/h3>\n<p>\u7167\u7247\u53d8\u6210\u9ed1\u767d\u7b80\u5355\u7ebf\u6761\u6709\u4ec0\u4e48\u7528\u5462\uff1f<\/p>\n<h4>1. \u624b\u7ed8\u98ce\u683c\u5316<\/h4>\n<p>\u4f8b\u5982\uff0c\u5f04\u4e00\u5957\u624b\u7ed8\u98ce\u683c\u7ec4\u4ef6\uff0c\u5219\u53ef\u4ee5\u628aDOM\u5143\u7d20\u53d8\u6210\u56fe\u7247\uff0c\u7136\u540e\uff0c\u518d\u4f7f\u7528\u672c\u6587\u63d0\u4f9b\u7684\u65b9\u6cd5\u8f6c\u6362\u4e0b\u3002\u5173\u4e8eDOM\u5143\u7d20\u5982\u4f55\u53d8\u6210\u56fe\u7247\uff0c\u53ef\u4ee5\u53c2\u89c1\u6211\u8fd9\u7bc7\u6587\u7ae0\uff1a\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2017\/08\/svg-foreignobject\/\">SVG &lt;foreignObject&gt;\u7b80\u4ecb\u4e0e\u622a\u56fe\u7b49\u5e94\u7528<\/a>\u201d\u3002<\/p>\n<h4>2. \u76f4\u63a5\u5b9e\u7269\u53d8\u6f2b\u753b<\/h4>\n<p>\u624b\u7ed8\u4e00\u5f20\u6f2b\u753b\u5f88\u8f9b\u82e6\u4e86\uff0c\u770b\u770b\u65e5\u672c\u90a3\u4e9b\u6f2b\u753b\u5bb6\uff0c\u4e00\u5468\u753b\u51e0\u5341\u5f20\u5c31\u7d2f\u6b7b\u7d2f\u6d3b\u3002\u5982\u679c\u53ef\u4ee5\u501f\u52a9\u56fe\u5f62\u5904\u7406\u6280\u672f\uff0c\u60f3\u753b\u4e2a\u7f57\u5929\u5927\u91ae\u7684\u9f99\u864e\u5c71\uff0c\u76f4\u63a5\u62ff\u5f20\u98ce\u666f\u7167\uff0c\u64e6\uff0c\u77ac\u95f4\u53d8\u6210\u7ebf\u6761\uff0c\u5173\u952e\u8f6e\u5ed3\u5c31\u51fa\u6765\uff0c\u5982\u679c\u662f\u5bcc\u575a\u4e49\u535a\uff0c\u76f4\u63a5\u5c31\u53ef\u4ee5\u7ed9\u7f16\u8f91\u4e86\uff0c\u4ece\u6b64\u518d\u4e5f\u4e0d\u6015\u65ad\u66f4\u4e86\u3002<\/p>\n<h4>3. \u51cf\u5c0f\u56fe\u7247\u7b49\u8d44\u6e90\u5c3a\u5bf8<\/h4>\n<p>\u6709\u4e00\u79cd\u56fe\u7247\u52a0\u8f7d\u7b56\u7565\u662f\u5148\u52a0\u8f7d\u5c0f\u56fe\uff0c\u7136\u540e\u5927\u56fe\u3002\u5176\u5b9e\u53ef\u4ee5\u521b\u65b0\u4e0b\uff0c\u5148\u52a0\u8f7d\u7ebf\u7a3f\u56fe\uff0c\u518d\u52a0\u8f7d\u5927\u56fe\u3002<\/p>\n<h4>4. \u542b\u6c99\u5c04\u5f71\u3001\u89c4\u907f\u7248\u6743<\/h4>\n<p>\u67d0\u6587\u7ae0\u8981\u70b9\u8bc4\u6279\u4eba\uff0c\u53c8\u4e0d\u597d\u610f\u601d\u76f4\u63a5\u653b\u51fb\uff0c\u53ef\u4ee5\u653e\u4e00\u5f20\u7ebf\u7a3f\u56fe\u3002\u4ea6\u6216\u8005\u6709\u4e9b\u56fe\u7247\u6709\u7248\u6743\uff0c\u76f4\u63a5\u7528\u4e0d\u592a\u597d\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u7ebf\u7a3f\uff0c\u4f60\u5c31\u8bf4\u662f\u4f60\u4eb2\u624b\u7ed8\u5236\u7684\uff0c\u4eba\u5bb6\u4e00\u770b\u8fd9\u7ed8\u753b\u6c34\u5e73\uff0c\u4e00\u5b9a\u4f1a\u76f8\u4fe1\u7684\u3002<\/p>\n<h4>5. \u6ca1\u6709\u753b\u6280\u4e5f\u80fd\u56fe\u7247\u8bb2\u6545\u4e8b<\/h4>\n<p>\u5982\u9898\u3002\u5199\u4e86\u90e8\u5c0f\u8bf4\uff0c\u60f3\u5f04\u4e9b\u63d2\u753b\uff0c\u81ea\u5df1\u4e0d\u4f1a\u753b\uff0c\u597d\u7684\u63d2\u753b\u5e08\u4e5f\u8bf7\u4e0d\u8d77\uff0c\u5b66\u751f\u515a\u53c8\u4e0d\u9760\u8c31\u3002\u600e\u4e48\u529e\uff0c\u81ea\u5df1\u62cd\u4e2a\u7167\uff0c\u5f04\u4e2a\u7ebf\u7a3f\u793a\u610f\u793a\u610f\uff0c\u804a\u80dc\u4e8e\u65e0\uff0c\u800c\u4e14\u524d\u540e\u98ce\u683c\u90fd\u7edf\u4e00\uff0c\u53c8\u6709\u7279\u8272\uff0c\u8bf4\u4e0d\u5b9a\u53cd\u800c\u5927\u53d7\u6b22\u8fce\uff0c\u5c31\u50cf\u7b80\u5355\u5355\u7eaf\u6768\u8d85\u8d8a\uff0c\u4e2a\u6027\u81ea\u4fe1\u738b\u83ca\u4e00\u6837\uff0c\u8bf4\u4e0d\u51c6\u7684\u3002<\/p>\n<p>\u6700\u540e\uff0c\u8865\u5145\u4e00\u53e5\uff1a\u4ee5\u4e0a\u4f5c\u7528\u7686\u662f\u81ea\u5df1\u8111\u6d1e\u5927\u5f00\uff0c\u80e1\u8a00\u4e71\u8bed\uff0c\u5927\u5bb6\u5343\u4e07\u522b\u5f53\u771f\uff0c\u6211\u81ea\u5df1\u4e00\u6761\u90fd\u6ca1\u7528\u8fc7\uff0c\u7eaf\u7cb9\u662f\u201c\u6bcf\u7bc7\u6587\u7ae0\u4e0d\u968f\u4fbf\u626f\u70b9\u4ec0\u4e48\u5c31\u96be\u53d7\u7684\u75c5\u201d\u72af\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a~<\/p>\n<p>\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=7635\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=7635<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6f14\u793a\u5982\u4f55\u4f7f\u7528JS\u5b9e\u73b0\u7167\u7247\u56fe\u7247\u53d8\u6210\u9ed1\u767d\u7ebf\u7a3f\u56fe\u7247\u6548\u679c\uff0c\u7167\u7247\u53d8\u6210\u9ed1\u767d\u7b80\u5355\u7ebf\u6761\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u6211\u80fd\u60f3\u5230\u7684\u5c31\u67095\u4e2a\u7528\u9014\uff0c\u5177\u4f53\u662f\u4ec0\u4e48\uff0c\u4e0d\u59a8\u8fdb\u6765\u770b\u4e00\u770b~<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[53,1262,1261,522,75,1096,1263,1260],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/7635"}],"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=7635"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/7635\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=7635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=7635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=7635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}