{"id":199293,"date":"2025-05-03T08:35:15","date_gmt":"2025-05-03T00:35:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199293\/"},"modified":"2025-05-03T08:35:15","modified_gmt":"2025-05-03T00:35:15","slug":"ecshop%e5%88%a4%e6%96%ad%e5%ad%97%e7%ac%a6%e4%b8%b2%e9%95%bf%e5%ba%a6%e7%9a%84%e6%96%b9%e6%a8%a1%e6%9d%bf%e5%ae%9a%e4%b9%89%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199293\/","title":{"rendered":"ecshop\u5224\u65ad\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u65b9\u6a21\u677f\u5b9a\u4e49\u65b9\u6cd5"},"content":{"rendered":"<p>&nbsp;\u5728ecshop\u5f53\u4e2d<span style=\"font-size: 13px;line-height: 19px;text-align: left\">\u4f7f\u7528\u51fd\u6570strlen<\/span><\/p>\n<p style=\"margin-top: 5px;margin-right: auto;margin-bottom: 5px;margin-left: auto;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;line-height: 19px;font-size: 13px;text-align: left\">\u4ee3\u7801\u8303\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>\r\n    &lt;!--{<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;line-height: 1.5\">if<\/span> <span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;line-height: 1.5\">strlen<\/span>(<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;line-height: 1.5\">$brand<\/span>.brand_name)&gt;1}--&gt;\r\n                             &lt;option value=\"1\" &gt;1&lt;\/option&gt;\r\n                             &lt;!--{\/<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;line-height: 1.5\">if<\/span>}--&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u5728ecshop\u5f53\u4e2d\u4f7f&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199293","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199293"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199293\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}