{"id":377,"date":"2014-07-18T14:08:37","date_gmt":"2014-07-18T06:08:37","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=377"},"modified":"2016-07-15T17:27:36","modified_gmt":"2016-07-15T09:27:36","slug":"uilabel%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2014\/07\/18\/140837377.html","title":{"rendered":"UILabel\u8be6\u89e3"},"content":{"rendered":"<p>1.\u521b\u5efaUIlabel<\/p>\n<pre lang=\"objc\" line=\"1\">UILabel *label1 = [[UILabelalloc] initWithFrame:CGRectMake(20, 40, 280, 80)];<\/pre>\n<p>2.\u8bbe\u7f6e\u80cc\u666f\u8272<\/p>\n<pre lang=\"objc\" line=\"1\">label1.backgroundColor = [UIColor grayColor];<\/pre>\n<p>3.\u8bbe\u7f6etag<\/p>\n<pre lang=\"objc\" line=\"1\">label1.tag = 91;<\/pre>\n<p>4.\u8bbe\u7f6e\u6807\u7b7e\u6587\u672c<\/p>\n<pre lang=\"objc\" line=\"1\">label1.text = @\"Hello world!\";<\/pre>\n<p>5.\u8bbe\u7f6e\u6807\u7b7e\u6587\u672c\u5b57\u4f53\u548c\u5b57\u4f53\u5927\u5c0f<\/p>\n<pre lang=\"objc\" line=\"1\">label1.font = [UIFont fontWithName:@\"Arial\" size:30];<\/pre>\n<p>6.\u8bbe\u7f6e\u6587\u672c\u5bf9\u5176\u65b9\u5f0f<\/p>\n<pre lang=\"objc\" line=\"1\">label1.textAlignment = UITextAlignmentCenter;<\/pre>\n<p>\u6587\u672c\u5bf9\u9f50\u65b9\u5f0f\u6709\u4ee5\u4e0b\u4e09\u79cd<\/p>\n<pre lang=\"objc\" line=\"1\">typedef enum {\n              UITextAlignmentLeft = 0,\u5de6\u5bf9\u9f50\n\n              UITextAlignmentCenter,\u5c45\u4e2d\u5bf9\u9f50 \n\n              UITextAlignmentRight, \u53f3\u5bf9\u9f50 \n\n} UITextAlignment;<\/pre>\n<p><!--more--><br \/>\n7.\u6587\u672c\u989c\u8272<\/p>\n<pre lang=\"objc\" line=\"1\">label1.textColor = [UIColor blueColor];<\/pre>\n<p>8.\u8d85\u51falabel\u8fb9\u754c\u6587\u5b57\u7684\u622a\u53d6\u65b9\u5f0f <\/p>\n<pre lang=\"objc\" line=\"1\">label1.lineBreakMode =UILineBreakModeTailTruncation;<\/pre>\n<p>\u622a\u53d6\u65b9\u5f0f\u6709\u4ee5\u4e0b6\u79cd<\/p>\n<pre lang=\"objc\" line=\"1\">\/\/typedef enum {\n              UILineBreakModeWordWrap = 0,\u4ee5\u7a7a\u683c\u4e3a\u8fb9\u754c,\u4fdd\u7559\u6574\u4e2a\u5355\u8bcd\n\n              UILineBreakModeCharacterWrap, \u4fdd\u7559\u6574\u4e2a\u5b57\u7b26\n\n              UILineBreakModeClip,            \u5230\u8fb9\u754c\u4e3a\u6b62\n\n              UILineBreakModeHeadTruncation,\u7701\u7565\u5f00\u59cb,\u4ee5\u2026 \u4ee3\u66ff\n\n              UILineBreakModeTailTruncation,\u7701\u7565\u7ed3\u5c3e,\u4ee5......\u4ee3\u66ff\n\n              UILineBreakModeMiddleTruncation,\u7701\u7565\u4e2d\u95f4,\u4ee5......\u4ee3\u66ff,\u591a\u884c\u65f6\u4f5c\u7528\u4e8e\u6700\u540e?\u4e00\u884c\n\n\/\/} UILineBreakMode;<\/pre>\n<p>9.\u6587\u672c\u6587\u5b57\u81ea\u9002\u5e94\u5927\u5c0f<\/p>\n<pre lang=\"objc\" line=\"1\">label1.adjustsFontSizeToFitWidth = YES;<\/pre>\n<p>\u5f53adjustsFontSizeToFitWidth=YES\u65f6\u5019,\u5982\u679c\u6587\u672cfont\u8981\u7f29\u5c0f\u65f6 baselineAdjustment\u8fd9\u4e2a\u503c\u63a7\u5236\u6587\u672c\u7684\u57fa\u7ebf\u4f4d\u7f6e,\u53ea\u6709\u6587\u672c\u884c\u6570\u4e3a1\u662f\u6709\u6548<br \/>\nlabel1.baselineAdjustment =UIBaselineAdjustmentAlignCenters;<br \/>\n\u6709\u4e09\u79cd\u65b9\u5f0f<\/p>\n<pre lang=\"objc\" line=\"1\">\/\/typedef enum {\n\n             UIBaselineAdjustmentAlignBaselines = 0, \u9ed8\u8ba4\u503c \u6587\u672c\u6700\u4e0a\u7aef\u4e8elabel\u4e2d\u7ebf\u5bf9\u9f50\n\n             UIBaselineAdjustmentAlignCenters,\/\/\u6587\u672c\u4e2d\u7ebf\u4e8e label\u4e2d\u7ebf\u5bf9\u9f50\n\n             UIBaselineAdjustmentNone,\/\/\u6587\u672c\u6700\u4f4e\u7aef\u4e0elabel\u4e2d\u7ebf\u5bf9\u9f50\n\n\/\/} UIBaselineAdjustment;<\/pre>\n<p>10.\u6587\u672c\u6700\u591a\u884c\u6570,\u4e3a0\u65f6\u6ca1\u6709\u6700\u5927\u884c\u6570\u9650\u5236 <\/p>\n<pre lang=\"objc\" line=\"1\">label1.numberOfLines = 2;<\/pre>\n<p>11.\u6700\u5c0f\u5b57\u4f53,\u884c\u6570\u4e3a1\u65f6\u6709\u6548,\u9ed8\u8ba4\u4e3a0.0 <\/p>\n<pre lang=\"objc\" line=\"1\">label1.minimumFontSize = 10.0;<\/pre>\n<p>12.\u6587\u672c\u9ad8\u4eae<\/p>\n<pre lang=\"objc\" line=\"1\">label1.highlighted = YES;<\/pre>\n<p>13.\u6587\u672c\u662f\u5426\u53ef\u53d8<\/p>\n<pre lang=\"objc\" line=\"1\">label1.enabled = YES;<\/pre>\n<p>14.\u53bb\u6389label\u80cc\u666f\u8272<\/p>\n<pre lang=\"objc\" line=\"1\">label1.backgroundColor = [UIColor clearColor];<\/pre>\n<p>15.\u6587\u672c\u9634\u5f71\u989c\u8272<\/p>\n<pre lang=\"objc\" line=\"1\">label1.shadowColor = [UIColor grayColor];<\/pre>\n<p>16.\u9634\u5f71\u5927\u5c0f<\/p>\n<pre lang=\"objc\" line=\"1\">label1.shadowOffset = CGSizeMake(1.0, 1.0);<\/pre>\n<p>17.\u662f\u5426\u80fd\u4e0e\u7528\u6237\u4ea4\u4e92label1.userInteractionEnabled = YES;<\/p>\n<p>\/\/\u6dfb\u52a0\u89c6\u56fe<\/p>\n<p>[self.view addSubview:label1]; <\/p>\n<p>[label1 release];<\/p>\n<p>\u5b9e\u4f8b\u8bf4\u660e\uff1a<\/p>\n<p>myLabel.minimumScaleFactor = 10.0;\/\/\u9ed8\u8ba4\u503c\u4e3a0,\u4e3a\u5f53\u524d\u5b57\u4f53\u5927\u5c0f<\/p>\n<p>\u4e00\u3001\u521d\u59cb\u5316<\/p>\n<p>UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(40,40, 120, 44)];<br \/>\n[self.view addSubview:myLabel];<\/p>\n<p>\u4e8c\u3001\u8bbe\u7f6e\u6587\u5b57 <\/p>\n<p>1\u3001\u8bbe\u7f6e\u9ed8\u8ba4\u6587\u672c<\/p>\n<p>NSString *text =@&#8221;\u6807\u7b7e\u6587\u672c&#8221;;<\/p>\n<p>myLabel.text = text;<\/p>\n<p>2\u3001\u8bbe\u7f6e\u6807\u7b7e\u6587\u672c(\u6b64\u5c5e\u6027\u662fiOS6.0\u4e4b\u540e\u624d\u51fa\u73b0,\u5982\u82e5\u4e0d\u662f\u5fc5\u8981,\u4e0d\u5efa\u8bae\u4f7f\u7528\u6b64\u5c5e\u6027)<\/p>\n<p>NSString *text =@&#8221;\u5176\u5b9e\u6ca1\u4ec0\u4e48&#8221;;<\/p>\n<p>NSMutableAttributedString *attributeString =[[NSMutableAttributedString alloc] initWithString:text];<br \/>\n[attributeStringsetAttributes:@{NSForegroundColorAttributeName : [UIColor redColor], NSFontAttributeName : [UIFont systemFontOfSize:17]} range:NSMakeRange(2, 1)];<br \/>\nmyLabel.attributedText = attributeString;<\/p>\n<p>\u5173\u952e\u5b57\u6807\u7ea2\u7684\u6548\u679c<\/p>\n<p>NSString *keyword =@&#8221;\u5f00\u6e90&#8221;;<\/p>\n<p>NSString *result =@&#8221;\u5f00\u6e90\u4e2d\u56fd\u793e\u533a&#8221;;<\/p>\n<p>\u8bbe\u7f6e\u6807\u7b7e\u6587\u5b57<\/p>\n<p>NSMutableAttributedString *attrituteString = [[NSMutableAttributedString alloc] initWithString:result];<\/p>\n<p>\u83b7\u53d6\u6807\u7ea2\u7684\u4f4d\u7f6e\u548c\u957f\u5ea6<\/p>\n<p>NSRange range = [result rangeOfString:keyword];<\/p>\n<p>\u8bbe\u7f6e\u6807\u7b7e\u6587\u5b57\u7684\u5c5e\u6027<\/p>\n<p>[attrituteString setAttributes:@{NSForegroundColorAttributeName : [UIColor redColor], NSFontAttributeName : [UIFont systemFontOfSize:17]} range:range];<\/p>\n<p>\/\/ \u663e\u793a\u5728Label\u4e0a<\/p>\n<p>label.attributedText = attrituteString;<\/p>\n<p>3\u3001\u8bbe\u7f6e\u5b57\u4f53,\u5982\u679c\u662f\u4f7f\u75282\u4e2d\u7684\u6587\u672c,\u90a3\u5728\u8bbe\u7f6e AttributeString\u7684\u5c5e\u6027\u65f6\u5df2\u7ecf\u8bbe\u7f6e\u8fc7Font\u4e86\u548ctextColor\u4e86,\u76f4\u63a5\u4f7f\u75281\u8bbe\u7f6e\u6587\u672c\u65f6\u8bbe\u7f6e\u6587\u672c\u65f6,\u8bbe\u7f6e\u5b57\u4f53\u65b9\u6cd5<\/p>\n<p>myLabel.font = [UIFont systemFontOfSize:13];<\/p>\n<p>4\u3001\u8bbe\u7f6e\u989c\u8272<\/p>\n<p>myLabel.textColor = [UIColor blueColor];<\/p>\n<p>5\u3001\u8bbe\u7f6e\u5bf9\u9f50\u65b9\u5f0f<\/p>\n<p>  myLabel.textAlignment = NSTextAlignmentCenter;\/\/\u5c45\u4e2d<\/p>\n<p>  NSTextAlignmentLeft \/\/\u5de6\u5bf9\u9f50<br \/>\n  NSTextAlignmentCenter \/\/\u5c45\u4e2d<br \/>\n  NSTextAlignmentRight \/\/\u53f3\u5bf9\u9f50<\/p>\n<p>  NSTextAlignmentJustified\/\/\u6700\u540e?\u4e00\u884c\u81ea\u7136\u5bf9<\/p>\n<p>  NSTextAlignmentNatural\/\/\u9ed8\u8ba4\u5bf9\u9f50\u811a\u672c<\/p>\n<p>NSTextAlignmentJustified\u548c NSTextAlignmentNatural\u7528\u7684\u65f6\u5019\u4f1a\u62a5\u9519,\u7a0b\u5e8f\u5d29\u6e83,\u6682\u65f6\u4e0d\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528,\u5e0c\u671b\u77e5\u9053\u7684\u6307\u6559?\u4e00\u4e0b,\u611f\u6fc0\u4e0d\u5c3d\u3002<\/p>\n<p>6\u3001\u6587\u5b57\u526a\u88c1\u65b9\u5f0f<\/p>\n<p>NSLineBreakByWordWrapping =0,\/\/\u4ee5\u7a7a\u683c\u4e3a\u8fb9\u754c,\u4fdd\u7559\u5355\u8bcd<\/p>\n<p>\/\/\u4fdd\u7559\u6574\u4e2a\u5b57\u7b26 \/\/\u7b80\u5355\u526a\u88c1,\u5230\u8fb9\u754c\u4e3a\u6b62 \/\/\u6309\u7167&#8221;&#8230;&#8230;\u6587\u5b57&#8221;\u663e\u793a \/\/\u6309\u7167&#8221;\u6587\u5b57&#8230;&#8230;\u6587\u5b57&#8221;\u663e\u793a \/\/\u6309\u7167&#8221;\u6587\u5b57&#8230;&#8230;&#8221;\u663e\u793a<\/p>\n<p>NSLineBreakByCharWrapping,<br \/>\nNSLineBreakByClipping,<br \/>\nNSLineBreakByTruncatingHead,<br \/>\nNSLineBreakByTruncatingTail,<br \/>\nNSLineBreakByTruncatingMiddle<\/p>\n<p>myLabel.lineBreakMode = NSLineBreakByTruncatingHead;<\/p>\n<p>7\u3001\u8bbe\u7f6eLabel enabled\u5c5e\u6027\u5982\u679c\u8bbe\u7f6e\u4e3aNo,\u5219\u6587\u5b57\u989c\u8272\u4f1a\u53d8\u6697,\u8868\u660e\u5176\u662f\u4e0d\u53ef\u7528\u7684,\u9ed8\u8ba4\u503c\u4e3aYES\u3002<\/p>\n<p>myLabel.enabled =NO;<\/p>\n<p>\u4e8c\u3001\u5339\u914dLabel\u4e0a\u7684\u6587\u5b57<\/p>\n<p>1\u3001\u662f\u5426\u6839\u636e\u6587\u672c\u5bbd\u5ea6\u6539\u53d8\u5b57\u4f53\u5927\u5c0f<\/p>\n<p>  myLabel.adjustsFontSizeToFitWidth =YES;<br \/>\n\/\/\u5047\u8bbe\u6587\u5b57\u5185\u5bb9\u4e3a@&#8221;\u66fe\u5728\u6708\u5149\u4e4b\u4e0b\u671b\u70df\u82b1,\u66fe\u5171\u770b\u5915\u9633\u6e10\u964d\u4e0b&#8221;,Label\u957f<\/p>\n<p>\u5ea6\u4e3a200,\u5219?\u4e00\u884c\u663e\u793a\u4e0d\u4e0b,\u82e5\u8bbe\u7f6e\u6b64\u5c5e\u6027\u4e3aYES,\u5219\u4f1a\u964d\u4f4e\u5b57\u4f53\u5927\u5c0f,\u4ee5\u663e\u793a\u5168\u90e8\u5185\u5bb9\u3002<\/p>\n<p>\u524d\u540e\u5bf9\u6bd4:<\/p>\n<p>2\u3001\u6539\u53d8\u5b57\u6bcd\u4e4b\u95f4\u7684\u95f4\u8ddd\u6765\u9002\u5e94label\u5927\u5c0f<br \/>\n\/\/\u5f53\u8fd9\u4e2a\u5c5e\u6027\u662fYES,\u6807\u7b7e\u53ef\u80fd\u6539\u53d8\u6807\u7b7e\u6587\u672c\u7684\u5b57\u6bcd\u95f4\u8ddd,\u4ee5\u4f7f\u8be5\u6587\u672c\u66f4<\/p>\n<p>\u9002\u5408\u6807\u7b7e\u7684\u8fb9\u754c\u5185\u3002\u6b64\u5c5e\u6027\u7684\u5b57\u7b26\u4e32,\u800c\u4e0d\u7ba1\u5f53\u524d\u884c\u7684\u884c\u7684\u88c1\u526a\u6a21\u5f0f\u3002\u8be5\u5c5e\u6027\u7684\u9ed8\u8ba4\u503c\u662fNO\u3002<\/p>\n<p>myLabel.adjustsLetterSpacingToFitWidth =NO;<\/p>\n<p>\/\/\u4e2a\u4eba\u4f7f\u7528\u4e86?\u4e00\u4e0b,\u6ca1\u53d1\u73b0\u6709\u4ec0\u4e48\u533a\u522b,\u4e0d\u77e5\u9053\u5177\u4f53\u662f\u4ec0\u4e48\u65f6\u5019\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n<p>3\u3001\u8bbe\u7f6e\u5bf9\u9f50\u57fa\u7ebf<\/p>\n<p>myLabel.adjustsFontSizeToFitWidth =YES;\/\/\u8c03\u6574\u57fa\u7ebf\u4f4d\u7f6e\u9700\u5c06\u6b64\u5c5e\u6027\u8bbe\u7f6e\u4e3aYES<\/p>\n<p>myLabel.baselineAdjustment = UIBaselineAdjustmentAlignBaselines;<\/p>\n<p>\u6b64\u5c5e\u6027\u6709\u4e09\u4e2a\u503c\u53ef\u9009<\/p>\n<p>1 UIBaselineAdjustmentAlignBaselines\/\/\u6587\u672c\u6700\u4e0a\u7aef\u4e0eLabel\u4e2d\u7ebf\u5bf9\u9f50,\u9ed8\u8ba4\u503c<\/p>\n<p>2 UIBaselineAdjustmentAlignCenters\/\/\u6587\u672c\u4e2d\u7ebf\u4e0eLabel\u4e2d\u7ebf\u5bf9\u9f50<\/p>\n<p>3 UIBaselineAdjustmentNone\/\/\u6587\u672c\u6700\u4e0b\u7aef\u4e0eLabel\u4e2d\u7ebf\u5bf9\u9f50<\/p>\n<p>4\u3001\u6700\u5c0f\u5b57\u4f53\u5927\u5c0f,\u5f53\u5b57\u4f53\u5c0f\u4e8e\u8fd9\u4e2a\u6700\u5c0f\u503c\u65f6\u65e0\u6548,\u663e\u793a\u6b64\u5c5e\u6027\u503c<\/p>\n<p>iOS6.0\u4e4b\u524d:minimumFontSize iOS6.0\u4e4b\u540e:minimumScaleFactor<\/p>\n<p>1 myLabel.minimumScaleFactor =10.0;\/\/\u9ed8\u8ba4\u503c\u4e3a0,\u4e3a\u5f53\u524d\u5b57\u4f53\u5927\u5c0f<\/p>\n<p>5\u3001\u884c\u6570<\/p>\n<p>myLabel.numberOfLines =2;\/\/Label\u884c\u6570 6\u3001\u9ad8\u4eae<\/p>\n<p>myLabel.highlighted =YES;\/\/\u662f\u5426\u9ad8\u4eae<\/p>\n<p>myLabel.highlightedTextColor = [UIColor redColor];\/\/\u9ad8\u4eae\u989c\u8272;\u6b64\u5c5e\u6027\u5728\u8bbe\u7f6e\u6309\u94ae\u7684titleLabel\u65f6,\u65e0\u8bbahighlighted\u662fYES\u8fd8\u662f NO,\u5728\u6309\u94ae\u6309\u4e0b\u65f6\u6807\u9898\u90fd\u663e\u793a\u6b64\u9ad8\u4eae\u989c\u8272<\/p>\n<p>7\u3001\u9634\u5f71<\/p>\n<p>  myLabel.shadowColor = [UIColor grayColor];\/\/\u9634\u5f71\u989c\u8272,\u9ed8\u8ba4\u4e3anil<\/p>\n<p>  myLabel.shadowOffset = CGSizeMake(1,1);\/\/\u9634\u5f71\u7684\u504f\u79fb\u70b9\u4e09\u3001Label\u4f4d\u7f6e<\/p>\n<p>1\u3001\u8ba1\u7b97UIlabel\u968f\u5b57\u4f53\u591a\u884c\u540e\u7684\u9ad8\u5ea6<\/p>\n<p>CGRect result,bounds;<\/p>\n<p>bounds = CGRectMake(0,0,200, 300);<br \/>\nheightLabel = [myLabel textRectForBounds:bounds<\/p>\n<p>                    limitedToNumberOfLines:20];\/\/\u8ba1\u7b9720\u884c\u540e\u7684Label\u7684Frame 4 NSLog(@&#8221;%f&#8221;,heightLabel.size.height);<\/p>\n<p>2\u3001\u7ed8\u5236text\u5230\u6307\u5b9a\u533a\u57df<\/p>\n<p>&#8211;\u2010 (void)drawTextInRect:(CGRect)rect<br \/>\n\/\/\u9700\u8981\u91cd\u8f7d\u6b64\u65b9\u6cd5,\u7136\u540e\u7531\u5b50\u7c7b\u8c03\u7528,\u91cd\u5199\u65f6\u8c03\u7528super\u53ef\u4ee5\u6309\u9ed8\u8ba4\u56fe\u5f62\u5c5e\u6027\u7ed8\u5236,\u82e5\u81ea\u5df1\u5b8c\u5168\u91cd\u5199\u7ed8\u5236\u51fd\u6570,\u5c31\u4e0d\u7528\u8c03\u7528super\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u521b\u5efaUIlabel UILabel *label1 = [[UILabelalloc] initWithFrame:CGRectMake(20, 40, 280, 80)]; 2.\u8bbe\u7f6e\u80cc\u666f\u8272 label1.backgroundColor = [UIColor grayColor]; 3.\u8bbe\u7f6etag label1.tag = 91; 4.\u8bbe\u7f6e\u6807\u7b7e\u6587\u672c label1.text = @&#8221;Hello world!&#8221;; 5.\u8bbe\u7f6e\u6807\u7b7e\u6587\u672c\u5b57\u4f53\u548c\u5b57\u4f53\u5927\u5c0f label1.font = [UIFont fontWithName:@&#8221;Arial&#8221; size:30]; 6.\u8bbe\u7f6e\u6587\u672c\u5bf9\u5176\u65b9\u5f0f label1.textAlignment = UITextAlignmentCenter; \u6587\u672c\u5bf9\u9f50\u65b9\u5f0f\u6709\u4ee5\u4e0b\u4e09\u79cd typedef enum { UITextAlignmentLeft = 0,\u5de6\u5bf9\u9f50 UITextAlignmentCenter,\u5c45\u4e2d\u5bf9\u9f50 UITextAlignmentRight, \u53f3\u5bf9\u9f50 } UITextAlignment;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[20],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-project","tag-basics"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}