{"id":585,"date":"2014-06-30T16:06:46","date_gmt":"2014-06-30T08:06:46","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=585"},"modified":"2016-07-15T15:43:11","modified_gmt":"2016-07-15T07:43:11","slug":"%e5%88%a4%e6%96%ad%e5%a7%93%e5%90%8d%e5%90%88%e6%b3%95%e6%80%a7%e7%9a%84%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2014\/06\/30\/160646585.html","title":{"rendered":"\u5224\u65ad\u59d3\u540d\u5408\u6cd5\u6027\u7684\u6b63\u5219\u8868\u8fbe\u5f0f"},"content":{"rendered":"<p>\u59d3\u540d\u4e00\u822c\u53ea\u5141\u8bb8\u5305\u542b\u4e2d\u6587\u6216\u82f1\u6587\u5b57\u6bcd\uff0cOC\u4e2d\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre lang=\"objc\" line=\"1\">+ (BOOL)isValidateName:(NSString *)name\n{\n    NSString *nameRegex = @\"^[\\u4E00-\\u9FA5A-Za-z]{1,10}\";\n\n    NSPredicate *namePredicate = [NSPredicate predicateWithFormat:@\"SELF MATCHES %@\",nameRegex];\n\n    return [namePredicate evaluateWithObject:name];\n\n}<\/pre>\n<p><strong>\\u4E00-\\u9FA5<\/strong>\u4ee3\u8868\u4e2d\u6587\u5b57\u7b26\u8303\u56f4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u59d3\u540d\u4e00\u822c\u53ea\u5141\u8bb8\u5305\u542b\u4e2d\u6587\u6216\u82f1\u6587\u5b57\u6bcd\uff0cOC\u4e2d\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a + (BOOL)isValidateName:(NSString *)name { NSString *nameRegex = @&#8221;^[\\u4E00-\\u9FA5A-Za-z]{1,10}&#8221;; NSPredicate *namePredicate = [NSPredicate predicateWithFormat:@&#8221;SELF MATCHES %@&#8221;,nameRegex]; return [namePredicate evaluateWithObject:name]; } \\u4E00-\\u9FA5\u4ee3\u8868\u4e2d\u6587\u5b57\u7b26\u8303\u56f4<\/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,17],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-project","tag-basics","tag-skill"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/585","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=585"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}