{"id":57,"date":"2019-01-03T11:31:24","date_gmt":"2019-01-03T03:31:24","guid":{"rendered":"http:\/\/www.hlzhy.com\/?p=57"},"modified":"2019-07-05T14:17:24","modified_gmt":"2019-07-05T06:17:24","slug":"ios-collectionview-%e5%88%97%e8%a1%a8%e7%bd%91%e6%a0%bc%e4%b9%8b%e9%97%b4%e5%88%87%e6%8d%a2%ef%bc%88%e5%b8%a6%e5%8a%a8%e7%94%bb%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.hlzhy.com\/?p=57","title":{"rendered":"iOS CollectionView \u5217\u8868&#038;\u7f51\u683c\u4e4b\u95f4\u5207\u6362\uff08\u5e26\u52a8\u753b\uff09"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"735\" src=\"https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/HYChangeableCollection-1024x735.png\" alt=\"\" class=\"wp-image-137\" srcset=\"https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/HYChangeableCollection-1024x735.png 1024w, https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/HYChangeableCollection-300x215.png 300w, https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/HYChangeableCollection-768x551.png 768w, https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/HYChangeableCollection.png 1034w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.hlzhy.com\/?p=57\" target=\"_blank\" rel=\"noreferrer noopener\">\u539f\u6587\u5730\u5740\uff1a<\/a><a href=\"https:\/\/www.hlzhy.com\/?p=57\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.hlzhy.com\/?p=57<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u524d\u8a00\uff1a<\/h2>\n\n\n\n<p>\u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u5217\u8868\u754c\u9762\uff0c\u8fd9\u4e2a\u5217\u8868\u80fd\u591f\u5728\u5217\u8868\u548c\u7f51\u683c\u4e4b\u95f4\u5207\u6362\uff0c\u8fd9\u79cd\u9700\u6c42\u7b97\u662f\u6bd4\u8f83\u5e38\u89c1\u7684\u3002\u672c\u4ee5\u4e3a\u60f3\u6211\u4eec\u662f\u7ad9\u5728\u5927\u725b\u7684\u80a9\u8180\u4e0a\u7f16\u7a0b\uff0c\u5c31\u53bb\u627e\u4e86\u4e0b\u5ea6\u5a18\u548c\u8c37\u54e5\uff0c\u4f46\u662f\u5e76\u6ca1\u6709\u627e\u5230\u6211\u60f3\u8981\u7684\uff08\u627e\u5230\u7684\u90fd\u662f\u4e0d\u5e26\u52a8\u753b\u7684\u5207\u6362\uff09\u3002\u65e2\u7136\u505a\u4e0d\u4e86VC\u6218\u58eb\uff0c\u90a3\u5c31\u81ea\u5df1\u52a8\u624b\u4e30\u8863\u8db3\u98df\u3002\u5728\u6211\u770b\u6765\uff0c<strong>\u6240\u6709\u7684\u89c6\u56fe\u53d8\u5316\u90fd\u5e94\u8be5\u81f3\u5c11\u5e26\u4e2a\u7b80\u5355\u7684\u8fc7\u6e21\u52a8\u753b<\/strong>\uff0c\u5f53\u7136\uff0c\u8fc7\u5ea6\u4f7f\u7528\u534e\u4e3d\u7684\u52a8\u753b\u6548\u679c\u4e5f\u4f1a\u9020\u6210\u7528\u6237\u7684\u5ba1\u7f8e\u75b2\u52b3\u3002\u201c\u52a8\u753b\u6709\u98ce\u9669\uff0c\u4f7f\u7528\u9700\u8c28\u614e\u201d\u3002<\/p>\n\n\n\n<p>\u4f9d\u7a00\u8bb0\u5f97\u4ee5\u524d\u9762\u8bd5\u7684\u65f6\u5019\u88ab\u9762\u8bd5\u5b98\u95ee\u8fc7\u8fd9\u4e2a\u95ee\u9898\uff0c\u5e76\u88ab\u544a\u77e5CollectionView\u81ea\u5e26\u6709\u5217\u8868\u548c\u7f51\u683c\u4e4b\u95f4\u5207\u6362\u5e76\u4e14\u5e26\u52a8\u753b\u7684API\u3002\u6700\u7ec8\u627e\u5230\u5982\u4e0b\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\nSummary\nChanges the collection view\u2019s layout and optionally animates the change.\n\nDiscussion\nThis method makes the layout change without further interaction from the user. If you choose to animate the layout change, the animation timing and parameters are controlled by the collection view.\n*\/\n- (void)setCollectionViewLayout:(UICollectionViewLayout *)layout animated:(BOOL)animated; \/\/ transition from one layout to another\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"211\" height=\"420\" src=\"https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/\u6700\u7ec8\u6548\u679c\uff08\u5207\u6362\u52a8\u753b\u52a8\u753b\u6162\u653e\uff09.gif\" alt=\"\" class=\"wp-image-136\"\/><\/figure>\n\n\n\n<p>\u6700\u7ec8\u6548\u679c\uff08\u5207\u6362\u52a8\u753b&amp;\u52a8\u753b\u6162\u653e\uff09.gif<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u73b0\uff1a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">UIViewController.m<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e00\u3001\u521d\u59cb\u5316UICollectionView<\/h5>\n\n\n\n<p>\u5728\u5f53\u524d\u63a7\u5236\u5668\u51c6\u5907\u4e00\u4e2a<code>BOOL<\/code>\u503c<code>isList<\/code>\uff0c\u7528\u6765\u8bb0\u5f55\u5f53\u524d\u9009\u62e9\u7684\u662f\u5217\u8868\u8fd8\u662f\u7f51\u683c\uff0c\u51c6\u5907\u4e24\u4e2a<code>UICollectionViewFlowLayout<\/code>\u5bf9\u5e94\u5217\u8868\u548c\u7f51\u683c\u7684\u5e03\u5c40\uff0c\u8bbe\u7f6e\u4e00\u4e2a<code>NOTIFIC_N_NAME<\/code>\u5b8f\uff0c\u5c06\u6b64\u5b8f\u4f5c\u4e3a<em>NotificationName<\/em>\uff0c\u7a0d\u540e\u5c06\u4ee5\u901a\u77e5\u7684\u65b9\u5f0f\u901a\u77e5Cell\u6539\u53d8\u5e03\u5c40\u3002\u5e76\u4e14\u521d\u59cb\u5316UICollectionView\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@interface ViewController ()&lt;UICollectionViewDelegate, UICollectionViewDataSource>\n@property (nonatomic, strong) UICollectionView *myCollectionView;\n\n@property (nonatomic, assign) BOOL isList;\n@property (nonatomic, strong) UICollectionViewFlowLayout *gridLayout;\n@property (nonatomic, strong) UICollectionViewFlowLayout *listLayout;\n@end\n#define NOTIFIC_N_NAME @\"ViewController_changeList\"\n@implementation ViewController\n-(UICollectionViewFlowLayout *)gridLayout{\n    if (!_gridLayout) {\n        _gridLayout = [[UICollectionViewFlowLayout alloc] init];\n        CGFloat width = (self.view.frame.size.width - 5) * 0.5;\n        _gridLayout.itemSize = CGSizeMake(width, 200 + width);\n        _gridLayout.minimumLineSpacing = 5;\n        _gridLayout.minimumInteritemSpacing = 5;\n        _gridLayout.sectionInset = UIEdgeInsetsZero;\n    }\n    return _gridLayout;\n}\n-(UICollectionViewFlowLayout *)listLayout{\n    if (!_listLayout) {\n        _listLayout = [[UICollectionViewFlowLayout alloc] init];\n        _listLayout.itemSize = CGSizeMake(self.view.frame.size.width, 190);\n        _listLayout.minimumLineSpacing = 0.5;\n        _listLayout.sectionInset = UIEdgeInsetsZero;\n    }\n    return _listLayout;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    _myCollectionView = [[UICollectionView alloc]initWithFrame:self.view.bounds collectionViewLayout:self.gridLayout];\n    _myCollectionView.showsVerticalScrollIndicator = NO;\n    _myCollectionView.backgroundColor = [UIColor grayColor];\n    _myCollectionView.delegate = self;\n    _myCollectionView.dataSource = self;\n    [self.view addSubview:_myCollectionView];\n    [self.myCollectionView registerClass:[HYChangeableCell class] forCellWithReuseIdentifier:@\"HYChangeableCell\"];\n    \/\/......\n}\n<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e8c\u3001\u5b9e\u73b0UICollectionViewDataSource<\/h5>\n\n\n\n<p>\u521b\u5efaUICollectionViewCell\uff0c\u7ed9<code>cell.isList<\/code>\u8d4b\u503c\uff0c \u544a\u8bc9Cell\u5f53\u524d\u72b6\u6001\uff0c\u7ed9<code>cell.notificationName<\/code>\u8d4b\u503c\uff0c\u7528\u4ee5\u63a5\u6536\u5207\u6362\u901a\u77e5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {\n    HYChangeableCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"HYChangeableCell\" forIndexPath:indexPath];\n    cell.isList = _isList;\n    cell.notificationName = NOTIFIC_N_NAME;\n    return cell;\n}\n<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e09\u3001\u70b9\u51fb\u5207\u6362\u6309\u94ae<\/h5>\n\n\n\n<p>\u901a\u8fc7<code>setCollectionViewLayout:animated:<\/code>\u65b9\u6cd5\u91cd\u65b0\u4e3aCollectionView\u5e03\u5c40\uff0c\u5e76\u5c06<code>animated<\/code>\u8bbe\u4e3aYES\u3002\u4f46\u662f\u4ec5\u4ec5\u8fd9\u6837\u662f\u4e0d\u591f\u7684\uff0c\u56e0\u4e3a\u8fd9\u6837\u5e76\u4e0d\u4f1a\u89e6\u53d1<code>cellForItemAtIndexPath<\/code>\u65b9\u6cd5\u3002\u6211\u4eec\u8fd8\u9700\u5411Cell\u53d1\u9001\u901a\u77e5\u544a\u8bc9\u5b83\u201c\u4f60\u9700\u8981\u6539\u53d8\u5e03\u5c40\u4e86\u201d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-(void)changeListButtonClick{\n    _isList = !_isList;\n    if (_isList) {\n        [self.myCollectionView setCollectionViewLayout:self.listLayout animated:YES];\n    }else{\n        [self.myCollectionView setCollectionViewLayout:self.gridLayout animated:YES];\n    }\n    \/\/[self.myCollectionView reloadData];\n    [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFIC_N_NAME object:@(_isList)];\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">UICollectionViewCell.m<\/h3>\n\n\n\n<p><strong>\u57fa\u672c\u5e03\u5c40\u4ee3\u7801\u8fd9\u91cc\u5c31\u4e0d\u8d34\u4e0a\u6765\u4e86\uff0c\u9700\u8981\u7684\u8bf7\u5728\u6587\u7ae0\u6700\u540e\u81ea\u884c\u4e0b\u8f7dDemo\u67e5\u770b\u3002<\/strong><br><strong>\uff01\u6ce8\u610f<\/strong>\uff1a\u56e0\u4e3a\u8fd9\u91cc\u4f7f\u7528\u7684\u662fUIView\u52a8\u753b\uff0c\u56e0\u4e3aUIView\u52a8\u753b\u5e76\u4e0d\u4f1a\u6839\u636e\u6211\u4eec\u8089\u773c\u6240\u770b\u5230\u7684\u52a8\u753b\u6548\u679c\u8fc7\u7a0b\u4e2d\u6765\u52a8\u6001\u6539\u53d8\u5bbd\u9ad8\uff0c\u5728\u52a8\u753b\u5f00\u59cb\u65f6\u5176\u5bbd\u9ad8\u5c31\u5df2\u7ecf\u662f\u7ed3\u675f\u72b6\u6001\u65f6\u7684\u5bbd\u9ad8\u3002\u6240\u4ee5\u7528Masonry\u7ed9\u5b50\u89c6\u56fe\u5e03\u5c40\u65f6\uff0c\u7ea6\u675f\u5bf9\u8c61\u5c3d\u53ef\u80fd\u7684<strong>\u907f\u514dCell\u7684\u53f3\u8fb9\u548c\u5e95\u8fb9<\/strong>\u3002\u5426\u5219\u52a8\u753b\u5c06\u4f1a\u51fa\u73b0\u5f02\u5e38\uff0c\u5982\u4e0b\u56fe\u7684TitleLabel\uff0c\u6211\u4eec\u80fd\u770b\u5230\u5728\u5207\u6362\u65f6title\u5bbd\u5ea6\u662f\u76f4\u63a5\u53d8\u77ed\u7684\uff0c\u4e5f\u9020\u6210\u5176\u5b83Label\u4ee5\u5b83\u4e3a\u7ea6\u675f\u5bf9\u8c61\u65f6\u52a8\u753b\u5f02\u5e38\uff08\u4e0b\u9762\u7ea2\u8272\u5b57\u4f53\u7684Label\uff0c\u5207\u6362\u65f6\u4f1a\u5f80\u4e0b\u79fb\u4f4d\uff09\u3002<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"393\" src=\"https:\/\/www.hlzhy.com\/wp-content\/uploads\/2019\/01\/title\u7ea6\u675f\u4e3a\u53f3\u8fb9\u65f6\u52a8\u753b\u6162\u653e.gif\" alt=\"\" class=\"wp-image-138\"\/><\/figure>\n\n\n\n<p>title\u7ea6\u675f\u4e3a\u53f3\u8fb9\u65f6\u52a8\u753b\u6162\u653e.gif<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e00\u3001\u91cd\u5199layoutSubviews<\/h5>\n\n\n\n<p>\u901a\u8fc7\u91cd\u5199layoutSubviews\u65b9\u6cd5\uff0c\u5c06<code>[super layoutSubviews]<\/code>\u5199\u8fdbUIView\u52a8\u753b\u4e2d\uff0c\u4f7fCell\u7684\u5207\u6362\u8fc7\u6e21\u52a8\u753b\u66f4\u5e73\u6ed1\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-(void)layoutSubviews{\n    [UIView animateWithDuration:0.3 animations:^{\n        [super layoutSubviews];\n    }];\n}\n<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e8c\u3001\u91cd\u5199setNotificationName<\/h5>\n\n\n\n<p>\u91cd\u5199setNotificationName\u65b9\u6cd5\u5e76\u6ce8\u518c\u89c2\u5bdf\u8005\u3002\u5b9e\u73b0\u901a\u77e5\u65b9\u6cd5\uff0c\u5c06\u901a\u77e5\u4f20\u6765\u7684\u503c\u8d4b\u503c\u7ed9<code>isList<\/code>\u3002<br>\u6700\u540e\u8bb0\u5f97\u79fb\u9664\u89c2\u5bdf\u8005\uff01<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-(void)setNotificationName:(NSString *)notificationName{\n    if ([_notificationName isEqualToString:notificationName]) return;\n    _notificationName = notificationName;\n    \/\/\u6ce8\u518c\u901a\u77e5\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(isListChange:) name:_notificationName object:nil];\n}\n\n-(void)isListChange:(NSNotification *)noti{\n    BOOL isList = [[noti object] boolValue];\n    [self setIsList:isList];\n}\n\n-(void)dealloc{\n    \/\/\u79fb\u9664\u89c2\u5bdf\u8005\n    [[NSNotificationCenter defaultCenter] removeObserver:self];\n}\n<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e09\u3001\u91cd\u5199setIsList<\/h5>\n\n\n\n<p>\u91cd\u5199setIsList\u65b9\u6cd5\uff0c\u901a\u8fc7\u5224\u65ad<code>isList<\/code>\u503c\u6539\u53d8\u5b50\u89c6\u56fe\u7684\u5e03\u5c40\u3002<br><strong>\u4ee3\u7801\u8f83\u591a\uff0c\u8be6\u7ec6\u4ee3\u7801\u8bf7\u4e0b\u8f7dDemo\u67e5\u770b\u3002<\/strong><\/p>\n\n\n\n<ul><li>\u6b64\u65b9\u6cd5\u5185 \u63a5\u6536\u5230\u901a\u77e5\u8fdb\u5165\u65f6cell\u7684frame\u5e76\u4e0d\u51c6\u786e\uff0c\u6b64\u65f6\u5982\u679c\u9700\u8981\u7528\u5230self.width\uff0c\u5219\u9700\u8981\u81ea\u884c\u8ba1\u7b97\uff0c\u4f8b\u5982\uff1a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-(void)setIsList:(BOOL)isList{\n    if (_isList == isList) return;\n    _isList = isList;\n    CGFloat width = _isList ? SCREEN_WIDTH : (SCREEN_WIDTH - 5) * 0.5;\n    if (_isList) {\n       \/\/......\n    }else{\n       \/\/......\n    }\n    \/\/......\n<\/code><\/pre>\n\n\n\n<ul><li>\u5982\u4f7f\u7528Masonry<br>\u5f53\u5e03\u5c40\u76f8\u5bf9\u7b80\u5355\u65f6\uff0c\u7ea6\u675f\u4f7f\u7528mas_updateConstraints\u8fdb\u884c\u66f4\u65b0\u5373\u53ef\u3002\u5f53\u5e03\u5c40\u6bd4\u8f83\u590d\u6742\uff0c\u7ea6\u675f\u6d89\u53ca\u5230\u67d0\u63a7\u4ef6\u5bbd\uff0c\u800c\u8fd9\u63a7\u4ef6\u5bbd\u53c8\u662f\u4e0d\u56fa\u5b9a\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528mas_remakeConstraints\u91cd\u505a\u7ea6\u675f\u3002<\/li><li>\u7ea6\u675f\u90fd\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u6700\u540e\u8c03\u7528UIView\u52a8\u753b\u66f4\u65b0\u7ea6\u675f\u3002\u5982\u679c\u6709\u7528frame\u8bbe\u7f6e\u7684\uff0c\u4e5f\u5c06\u8bbe\u7f6eframe\u4ee3\u7801\u5199\u5728UIView\u52a8\u753b\u5185\u3002<br><strong>\uff01\u6ce8\u610f<\/strong>\uff1a\u5982\u6709\u7528masonry\u7ea6\u675f\u5173\u8054\u4e86 \u7528frame\u8bbe\u7f6e\u7684\u89c6\u56fe\uff0c\u5219\u6b64\u5904\u9700\u8981\u628aframe\u8bbe\u7f6e\u7684\u89c6\u56fe\u5199\u5728\u524d\u9762\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-(void)setIsList:(BOOL)isList{\n    \/\/......\n    [UIView animateWithDuration:0.3f animations:^{\n        self.label3.frame = frame3;\n        self.label4.frame = frame4;\n        \n        [self.contentView layoutIfNeeded];\n    }];\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Demo:<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/Hank-Zhong\/HYChangeableCollection\" target=\"_blank\" rel=\"noreferrer noopener\">HYChangeableCollection<\/a><\/p>\n\n\n\n<p>-END-<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740\uff1ahttps:\/\/www.hlzhy.com\/?p=57 \u524d\u8a00\uff1a \u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u5217\u8868\u754c\u9762\uff0c\u8fd9\u4e2a\u5217\u8868\u80fd\u591f\u5728\u5217\u8868\u548c\u7f51\u683c\u4e4b\u95f4\u5207\u6362\uff0c\u8fd9\u79cd\u9700\u6c42\u7b97 &hellip; <a href=\"https:\/\/www.hlzhy.com\/?p=57\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">iOS CollectionView \u5217\u8868&#038;\u7f51\u683c\u4e4b\u95f4\u5207\u6362\uff08\u5e26\u52a8\u753b\uff09<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4,15],"_links":{"self":[{"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/posts\/57"}],"collection":[{"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":8,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/142"}],"wp:attachment":[{"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hlzhy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}