{"id":567,"date":"2023-02-25T19:11:37","date_gmt":"2023-02-25T11:11:37","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=567"},"modified":"2023-04-29T20:34:15","modified_gmt":"2023-04-29T12:34:15","slug":"swift-differences-between-class-and-structure","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/swift-differences-between-class-and-structure\/","title":{"rendered":"Swift &#8211; \u7c7b\u548c\u7ed3\u6784\u4f53\u7684\u533a\u522b"},"content":{"rendered":"<p>\u7c7b\u548c\u7ed3\u6784\u4f53\u6709\u8bb8\u591a\u76f8\u540c\u4e4b\u5904\uff0c\u4e5f\u6709\u8bb8\u591a\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n<p>\u4e8c\u8005\u533a\u522b\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u7c7b\u53ef\u4ee5\u7ee7\u627f\uff0c\u7ed3\u6784\u4f53\u4e0d\u53ef\u4ee5<\/li>\n<li>\u53ef\u4ee5\u8ba9\u4e00\u4e2a\u7c7b\u7684\u5b9e\u4f8b\u6765\u53cd\u521d\u59cb\u5316\uff0c\u91ca\u653e\u5b58\u50a8\u7a7a\u95f4\uff0c\u7ed3\u6784\u4f53\u505a\u4e0d\u5230<\/li>\n<li>\u7c7b\u7684\u5bf9\u8c61\u662f\u5f15\u7528\u7c7b\u578b\uff0c\u800c\u7ed3\u6784\u4f53\u662f\u503c\u7c7b\u578b\u3002\u6240\u4ee5\u7c7b\u7684\u8d4b\u503c\u662f\u4f20\u9012\u5f15\u7528\uff0c\u7ed3\u6784\u4f53\u5219\u662f\u4f20\u503c\u3002<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<p>\u76f8\u540c\u70b9\uff1a<\/p>\n<ul>\n<li>\u7c7b\u548c\u7ed3\u6784\u4f53\u90fd\u53ef\u4ee5\u6269\u5c55<\/li>\n<li>\u5b9a\u4e49\u5c5e\u6027\u7528\u4e8e\u50a8\u5b58\u503c<\/li>\n<li>\u5b9a\u4e49\u65b9\u6cd5\u7528\u4e8e\u63d0\u4f9b\u529f\u80fd<\/li>\n<li>\u5b9a\u4e49\u4e0b\u6807\u7528\u4e8e\u901a\u8fc7\u4e0b\u6807\u8bed\u6cd5\u8bbf\u95ee\u503c<\/li>\n<li>\u5b9a\u4e49\u521d\u59cb\u5316\u5668\u7528\u4e8e\u751f\u6210\u521d\u59cb\u5316\u503c<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7c7b\u548c\u7ed3\u6784\u4f53\u6709\u8bb8\u591a\u76f8\u540c\u4e4b\u5904\uff0c\u4e5f\u6709\u8bb8\u591a\u4e0d\u540c\u4e4b\u5904\u3002 \u4e8c\u8005\u533a\u522b\u5982\u4e0b\uff1a \u7c7b\u53ef\u4ee5\u7ee7\u627f\uff0c\u7ed3\u6784\u4f53\u4e0d\u53ef\u4ee5 \u53ef\u4ee5\u8ba9\u4e00\u4e2a\u7c7b\u7684\u5b9e\u4f8b\u6765\u53cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171],"tags":[],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-swift"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}