{"id":100109,"date":"2015-11-09T11:44:41","date_gmt":"2015-11-09T03:44:41","guid":{"rendered":"http:\/\/www.ilzhi.cn\/?p=100109"},"modified":"2015-11-09T11:48:51","modified_gmt":"2015-11-09T03:48:51","slug":"flash-actionscript-3-0-bitmap-scale9grid","status":"publish","type":"post","link":"http:\/\/www.ilezhi.cn\/?p=100109","title":{"rendered":"Flash Actionscript 3.0 \u4f4d\u56fe\u4e5d\u5bab\u683c\u5207\u7247\u4ee3\u7801"},"content":{"rendered":"<p>\u6765\u6e90\uff1ahttp:\/\/bbs.9ria.com\/thread-235526-1-1.html<\/p>\n<pre class=\"striped:false lang:as decode:true \" title=\"actionscript 3.0 \u4f4d\u56fe\u4e5d\u5bab\u683c\u4ee3\u7801\">package cn.flashk.controls.support{\r\n\timport flash.display.Bitmap;\r\n\timport flash.display.BitmapData;\r\n\timport flash.geom.Matrix;\r\n\timport flash.geom.Point;\r\n\timport flash.geom.Rectangle;\r\n\r\n\t\/**\r\n\t* &lt;p&gt;Scale9GridBitmap \u7528\u6765\u521b\u5efa\u4f4d\u56fe\u7684\u4e5d\u5bab\u683c\u7f29\u653e\u3002\uff08\u56e0\u4e3aflash\u672c\u8eab\u7684\u4e5d\u5bab\u683c\u7f29\u653e\u5e76\u4e0d\u652f\u6301\u4f4d\u56fe\uff0c\u53ea\u652f\u6301\u77e2\u91cf\uff09&lt;\/p&gt;\r\n\t* \r\n\t* \u8981\u4f7f\u7528\u4f4d\u56fe\u7684\u4e5d\u5bab\u683c\uff0c\u8bf7\u5148\u4f20\u9012\u539f\u59cb\u7684\u56fe\u50cf\u5230sourceBitmapData\u5c5e\u6027\uff0cscale9GridBitmap.sourceBitmapData = bitmapData\u5b9e\u4f8b\r\n\t* \u7136\u540e\u76f4\u63a5\u8bbe\u7f6ewidth\u548cheight\u5c5e\u6027\u3002\uff08\u6b64\u65f6scaleX\u548cscaleY\u59cb\u7ec8\u4e3a1\uff0cset width\u548cset height\u51fd\u6570\u5df2\u7ecf\u88ab\u91cd\u5199\uff09\u3002\r\n\t* \u867d\u7136\u4f60\u4ecd\u7136\u53ef\u4ee5\u8bbe\u7f6escale\u6a2a\u5411\u7f29\u653e\u548c\u7ad6\u5411\u7f29\u653e\uff0c\u4e0d\u8fc7\u4e0d\u5efa\u8bae\u4f7f\u7528\u8bbe\u7f6escaleX\u548cscaleY\u5c5e\u6027\u7f29\u653e\u3002\u8981\u4f7f\u7528scaleX\u800c\u53c8\u8981\u5f00\u542f\u4e5d\u5bab\u683c\uff0c\u8bf7\u4f7f\u7528 b.width = b.width \u4e58\u4ee5 b.scaleX\u8fd9\u6837\u7684\u8bed\u6cd5\u3002\r\n\t*\/\r\n\r\n\tpublic class Scale9GridBitmap extends Bitmap {\r\n\t\t\/**\r\n\t\t* \u4e5d\u5bab\u683c\u5de6\u8fb9\u7ad6\u7ebf\u4e0e0\u5750\u6807\u7684\u8ddd\u79bb\r\n\t\t*\/\r\n\t\tpublic var leftLineSpace:uint = 8;\r\n\t\t\/**\r\n\t\t* \u4e5d\u5bab\u683c\u53f3\u8fb9\u7ad6\u7ebf\u4e0e\u56fe\u50cf\u6700\u53f3\u50cf\u7d20\u7684\u8ddd\u79bb\r\n\t\t*\/\r\n\t\tpublic var rightLineSpace:uint = 8;\r\n\t\t\/**\r\n\t\t* \u4e5d\u5bab\u683c\u4e0a\u9762\u6a2a\u7ebf\u4e0e0\u5750\u6807\u7684\u8ddd\u79bb\r\n\t\t*\/\r\n\t\tpublic var topLineSpace:uint = 6;\r\n\t\t\/**\r\n\t\t* \u4e5d\u5bab\u683c\u4e0b\u9762\u6a2a\u7ebf\u4e0e\u56fe\u50cf\u6700\u4e0b\u50cf\u7d20\u7684\u8ddd\u79bb\r\n\t\t*\/\r\n\t\tpublic var bottomLineSpace:uint = 6;\r\n\t\t\/**\r\n\t\t* \u63a7\u5236\u518d\u62c9\u4f38\u4e5d\u5bab\u683c\u4f4d\u56fe\u65f6\u662f\u5426\u5bf9\u4e2d\u95f4\u7684\u90e8\u5206\u5f00\u542f\u5e73\u6ed1\u5904\u7406\uff0c\u9ed8\u8ba4\u5173\u95ed\uff0c\u5f00\u542f\u5c06\u83b7\u5f97\u66f4\u597d\u7684\u6e10\u53d8\u6548\u679c\uff0c\u8bbe\u7f6e\u4e3a true \u7684\u60c5\u51b5\u4e0b\u7ed8\u5236\u4f4d\u56fe\u8981\u6bd4\u5728\u8bbe\u7f6e\u4e3a false \u7684\u60c5\u51b5\u4e0b\u6267\u884c\u76f8\u540c\u64cd\u4f5c\u66f4\u4e3a\u7f13\u6162\uff0c\u8bf7\u6ce8\u610f\u6b64\u53c2\u6570\u4e0esmoothing\u5c5e\u6027\u7684\u533a\u522b\uff0csmoothing\u662f\u6307\u63a7\u5236\u5728\u6574\u4e2a\u4f4d\u56fe\u7f29\u653e\u65f6\u662f\u5426\u8fdb\u884c\u5e73\u6ed1\u5904\u7406\u3002\r\n\t\t* smoothing\u5728\u8fd9\u91cc\u53ea\u5f71\u54cd\u5c0f\u6570\u5750\u6807\u65f6\u662f\u5426\u5e73\u6ed1\u5904\u7406\uff0c\u56e0\u4e3aScale9GridBitmap\u7684\u5728\u91cd\u8bbe\u5bbd\u9ad8\u65f6scaleX\u548cscaleY\u59cb\u7ec8\u4e3a1\uff08set width\u548cset height\u51fd\u6570\u5df2\u7ecf\u88ab\u91cd\u5199\uff0c\u4f46\u4f60\u4ecd\u7136\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6escaleX\uff0c\u6b64\u65f6smoothing\u4f1a\u6709\u6548\u679c\uff09\r\n\t\t* \r\n\t\t* &lt;p&gt;\u4fee\u6539scaleSmoothing\u53ea\u4f1a\u5728\u4e0b\u4e00\u6b21\u66f4\u6539\u5bbd\u9ad8\u65f6\u751f\u6548\uff0c\u5e76\u4e0d\u4f1a\u7acb\u5373\u5237\u65b0\u56fe\u50cf\uff0c\u5982\u679c\u9700\u8981\u7acb\u5373\u5237\u65b0\uff0c\u8bf7\u8c03\u7528update\u51fd\u6570&lt;\/p&gt;\r\n\t\t* \r\n\t\t* @see #update()\r\n\t\t*\/\r\n\t\tpublic var scaleSmoothing:Boolean = false;\r\n\r\n\t\tprotected var sourceBD:BitmapData;\r\n\t\tprotected var _width:uint=0;\r\n\t\tprotected var _height:uint=0;\r\n\t\tprotected var bd:BitmapData;\r\n\r\n\t\tpublic function Scale9GridBitmap() {\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u8bbe\u7f6eScale9GridBitmap\u7684\u539f\u59cb\u672a\u7f29\u653e\u7684\u6e90\u6570\u636e\uff0c\u53ef\u4ee5\u4e0e\u5176\u4ed6 Bitmap \u5171\u7528\u4e00\u4e2a Bitmapdata\u3002\u56e0\u4e3aScale9GridBitmap\u5728\u91cd\u8bbe\u5bbd\u9ad8\u9700\u8981\u91cd\u65b0\u8ba1\u7b97bitmapdata\u6570\u636e\uff0c\u9700\u8981\u4ee5\u6b64\u5c5e\u6027\u7684\u6570\u636e\u505a\u53c2\u8003\uff0cScale9GridBitmap\u5e76\u4e0d\u4f1a\u4fee\u6539\u6b64\u5c5e\u6027\u4e2d\u7684\u50cf\u7d20\u6570\u636e\u3002\u53ea\u4f1a\u4fee\u6539\u81ea\u8eabbitmapdata\u5c5e\u6027\u7684\u6570\u636e\u3002\r\n\t\t*\/\r\n\t\tpublic function set sourceBitmapData(value:BitmapData):void {\r\n\t\t\tsourceBD = value;\r\n\t\t\tthis.bitmapData = sourceBD;\r\n\t\t\tif (_height==0) {\r\n\t\t\t\t_height = sourceBD.height;\r\n\t\t\t}\r\n\t\t\tif (_width == 0) {\r\n\t\t\t\t_width = sourceBD.width;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tpublic function useSourceSize():void {\r\n\t\t\tthis.bitmapData = sourceBD;\r\n\t\t\t_height = sourceBD.height;\r\n\t\t\t_width = sourceBD.width;\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u66f4\u6539Scale9GridBitmap\u7684\u5bbd\u5ea6\uff0c\u4fee\u6539\u6b64\u503c\u5c06\u91cd\u65b0\u8ba1\u7b97Scale9GridBitmap\u7684bitmapData\u6570\u636e\uff0c\u5982\u679cheight\u503c\u4e0e\u6e90\u56fe\u50cf\u76f8\u540c\uff0c\u53ea\u4fee\u6539width\u5c06\u91c7\u75283\u5206\u6cd5\u52a0\u901f\r\n\t\t* \r\n\t\t* @see #scaleGrid3()\r\n\t\t* @see #update()\r\n\t\t*\/\r\n\t\toverride public function set width(value:Number):void {\r\n\t\t\tif (uint(value) == _width) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_width = uint(value);\r\n\t\t\tif (sourceBD == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (_width == sourceBD.width &amp;&amp; _height == sourceBD.height) {\r\n\t\t\t\tthis.bitmapData = sourceBD;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (_height == sourceBD.height) {\r\n\t\t\t\tscaleGrid3();\r\n\t\t\t} else {\r\n\t\t\t\tscaleGrid9();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u66f4\u6539Scale9GridBitmap\u7684\u9ad8\u5ea6\uff0c\u4fee\u6539\u6b64\u503c\u5c06\u91cd\u65b0\u8ba1\u7b97Scale9GridBitmap\u7684bitmapData\u6570\u636e\uff0c\u5982\u679cwidth\u503c\u4e0e\u6e90\u56fe\u50cf\u76f8\u540c\uff0c\u53ea\u4fee\u6539height\u5c06\u91c7\u75283\u5206\u6cd5\u52a0\u901f\r\n\t\t* \r\n\t\t* @see #scaleGrid3V()\r\n\t\t* @see #update()\r\n\t\t*\/\r\n\t\toverride public function set height(value:Number):void {\r\n\t\t\tif (uint(value) == _height) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_height = uint(value);\r\n\t\t\tif (_width == sourceBD.width &amp;&amp; _height == sourceBD.height) {\r\n\t\t\t\tthis.bitmapData = sourceBD;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (_width == sourceBD.width) {\r\n\t\t\t\tscaleGrid3V();\r\n\t\t\t} else {\r\n\t\t\t\tscaleGrid9();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u7acb\u5373\u91cd\u65b0\u8ba1\u7b97\u56fe\u50cf\uff0c\u5982\u679csourceBitmapData\u7684\u6570\u636e\u6709\u66f4\u65b0\uff0c\u8c03\u7528\u6b64\u65b9\u6cd5\u7acb\u5373\u5237\u65b0Scale9GridBitmap\u4e0esourceBitmapData\u540c\u6b65\uff0c\u8bf7\u6ce8\u610fScale9GridBitmap\u7684bitmapData\u59cb\u7ec8\u4e0esourceBitmapData\u662f\u4e24\u4efd\u4e0d\u540c\u7684\u6570\u636e\u548c\u5bf9\u8c61\r\n\t\t*\/\r\n\t\tpublic function update():void {\r\n\t\t\tif (sourceBD &amp;&amp; _width == sourceBD.width &amp;&amp; _height == sourceBD.height) {\r\n\t\t\t\tthis.bitmapData = sourceBD;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (sourceBD &amp;&amp; _width == sourceBD.width) {\r\n\t\t\t\tscaleGrid3V();\r\n\t\t\t} else if (sourceBD &amp;&amp; _height == sourceBD.height) {\r\n\t\t\t\tscaleGrid3();\r\n\t\t\t} else {\r\n\t\t\t\tscaleGrid9();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u6a2a\u54113\u5206\u683c\u542f\u7528\u52a0\u901f\r\n\t\t*\/\r\n\t\tprotected function scaleGrid3():void {\r\n\t\t\tif (bd != null) {\r\n\t\t\t\tbd.dispose();\r\n\t\t\t}\r\n\t\t\tbd = new BitmapData(_width,_height,true,0);\r\n\t\t\tbd.copyPixels( sourceBD,new Rectangle(0,0,leftLineSpace,_height),new Point(0,0) );\r\n\t\t\tvar tmpBD:BitmapData;\r\n\t\t\ttmpBD = new BitmapData(sourceBD.width-leftLineSpace-rightLineSpace,sourceBD.height,true,0);\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(leftLineSpace,0,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tvar mat:Matrix = new Matrix();\r\n\t\t\tvar sca:Number = (_width-leftLineSpace-rightLineSpace)\/(sourceBD.width-leftLineSpace-rightLineSpace);\r\n\t\t\tmat.scale(sca,1);\r\n\t\t\tmat.tx = leftLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(leftLineSpace,0,_width-leftLineSpace-rightLineSpace,_height),scaleSmoothing );\r\n\t\t\tbd.copyPixels( sourceBD,new Rectangle(sourceBD.width-rightLineSpace,0,rightLineSpace,_height),new Point(_width-rightLineSpace,0) );\r\n\t\t\tthis.bitmapData = bd;\r\n\t\t\ttmpBD.dispose();\r\n\t\t}\r\n\r\n\t\t\/**\r\n\t\t* \u7ad6\u54113\u5206\u683c\u542f\u7528\u52a0\u901f\r\n\t\t*\/\r\n\t\tprotected function scaleGrid3V():void {\r\n\t\t\tif (bd != null) {\r\n\t\t\t\tbd.dispose();\r\n\t\t\t}\r\n\t\t\tbd = new BitmapData(_width,_height,true,0);\r\n\t\t\tbd.copyPixels( sourceBD,new Rectangle(0,0,_width,_height),new Point(0,0) );\r\n\t\t\tvar tmpBD:BitmapData;\r\n\t\t\ttmpBD = new BitmapData(sourceBD.width,sourceBD.height-topLineSpace-bottomLineSpace,true,0);\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(0,topLineSpace,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tvar mat:Matrix = new Matrix();\r\n\t\t\tvar sca:Number = (_height-topLineSpace-bottomLineSpace)\/(sourceBD.height-topLineSpace-bottomLineSpace);\r\n\t\t\tmat.scale(1,sca);\r\n\t\t\tmat.ty = topLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(0,topLineSpace,_width,_height-topLineSpace-bottomLineSpace),scaleSmoothing );\r\n\t\t\tbd.copyPixels( sourceBD,new Rectangle(0,sourceBD.height-bottomLineSpace,_width,bottomLineSpace),new Point(0,_height-bottomLineSpace) );\r\n\t\t\tthis.bitmapData = bd;\r\n\t\t\ttmpBD.dispose();\r\n\t\t}\r\n\r\n\t\tprotected function scaleGrid9():void {\r\n\t\t\tif (bd != null) {\r\n\t\t\t\tbd.dispose();\r\n\t\t\t}\r\n\t\t\tvar tmpBD:BitmapData;\r\n\t\t\tbd = new BitmapData(_width,_height,true,0);\r\n\t\t\tvar scaX:Number=(_width-leftLineSpace-rightLineSpace)\/(sourceBD.width-leftLineSpace-rightLineSpace);\r\n\t\t\tvar scaY:Number = (_height-topLineSpace-bottomLineSpace)\/(sourceBD.height-topLineSpace-bottomLineSpace);\r\n\t\t\tvar mat:Matrix;\r\n\t\t\ttmpBD = new BitmapData(sourceBD.width-leftLineSpace-rightLineSpace,topLineSpace,true,0);\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(leftLineSpace,0,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tmat= new Matrix();\r\n\t\t\tmat.scale(scaX,1);\r\n\t\t\tmat.tx = leftLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(leftLineSpace,0,_width-leftLineSpace-rightLineSpace,topLineSpace),scaleSmoothing );\r\n\t\t\tif (bottomLineSpace == topLineSpace) {\r\n\t\t\t\ttmpBD.fillRect(new Rectangle(0,0,tmpBD.width,tmpBD.height),0);\r\n\t\t\t} else {\r\n\t\t\t\ttmpBD.dispose();\r\n\t\t\t\ttmpBD = new BitmapData(sourceBD.width-leftLineSpace-rightLineSpace,bottomLineSpace,true,0);\r\n\t\t\t}\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(leftLineSpace,sourceBD.height-bottomLineSpace,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tmat.ty = _height-bottomLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(leftLineSpace,_height-bottomLineSpace,_width-leftLineSpace-rightLineSpace,bottomLineSpace),scaleSmoothing );\r\n\t\t\tmat= new Matrix();\r\n\t\t\tmat.scale(1,scaY);\r\n\t\t\ttmpBD.dispose();\r\n\t\t\ttmpBD = new BitmapData(leftLineSpace,sourceBD.height-topLineSpace-bottomLineSpace,true,0);\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(0,topLineSpace,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tmat.ty = topLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(0,topLineSpace,leftLineSpace,_height-topLineSpace-bottomLineSpace),scaleSmoothing );\r\n\t\t\tif (rightLineSpace == leftLineSpace) {\r\n\t\t\t\ttmpBD.fillRect(new Rectangle(0,0,tmpBD.width,tmpBD.height),0);\r\n\t\t\t} else {\r\n\t\t\t\ttmpBD.dispose();\r\n\t\t\t\ttmpBD = new BitmapData(rightLineSpace,sourceBD.height-topLineSpace-bottomLineSpace,true,0);\r\n\t\t\t}\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(sourceBD.width-rightLineSpace,topLineSpace,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tmat.tx = _width-rightLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(_width-rightLineSpace,topLineSpace,rightLineSpace,_height-topLineSpace-bottomLineSpace),scaleSmoothing );\r\n\t\t\tmat = new Matrix();\r\n\t\t\tmat.scale(scaX,scaY);\r\n\t\t\ttmpBD.dispose();\r\n\t\t\ttmpBD = new BitmapData(sourceBD.width-leftLineSpace-rightLineSpace,sourceBD.height-topLineSpace-bottomLineSpace,true,0);\r\n\t\t\ttmpBD.copyPixels(sourceBD,new Rectangle(leftLineSpace,topLineSpace,tmpBD.width,tmpBD.height),new Point(0,0) );\r\n\t\t\tmat.tx = leftLineSpace;\r\n\t\t\tmat.ty = topLineSpace;\r\n\t\t\tbd.draw(tmpBD,mat,null,null,new Rectangle(leftLineSpace,topLineSpace,_width-leftLineSpace-rightLineSpace,_height-topLineSpace-bottomLineSpace),scaleSmoothing );\r\n\t\t\ttmpBD.dispose();\r\n\t\t\tbd.copyPixels(sourceBD,new Rectangle(0,0,leftLineSpace,topLineSpace),new Point(0,0) );\r\n\t\t\tbd.copyPixels(sourceBD,new Rectangle(0,sourceBD.height-bottomLineSpace,leftLineSpace,bottomLineSpace),new Point(0,_height-bottomLineSpace) );\r\n\t\t\tbd.copyPixels(sourceBD,new Rectangle(sourceBD.width-rightLineSpace,0,rightLineSpace,topLineSpace),new Point(_width-rightLineSpace,0) );\r\n\t\t\tbd.copyPixels(sourceBD,new Rectangle(sourceBD.width-rightLineSpace,sourceBD.height-bottomLineSpace,rightLineSpace,bottomLineSpace),new Point(_width-rightLineSpace,_height-bottomLineSpace) );\r\n\t\t\tthis.bitmapData = bd;\r\n\t\t}\r\n\r\n\t}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u6e90\uff1ahttp:\/\/bbs.9ria.com\/thread-235526-1-1.html package c &hellip; <a href=\"http:\/\/www.ilezhi.cn\/?p=100109\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Flash Actionscript 3.0 \u4f4d\u56fe\u4e5d\u5bab\u683c\u5207\u7247\u4ee3\u7801<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[81,78,15],"class_list":["post-100109","post","type-post","status-publish","format-standard","hentry","category-share","category-program","tag-actionscript","tag-adobe","tag-flash-player"],"_links":{"self":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts\/100109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100109"}],"version-history":[{"count":0,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts\/100109\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100109"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}