{"id":2429,"date":"2020-03-20T09:12:57","date_gmt":"2020-03-20T01:12:57","guid":{"rendered":"http:\/\/www.yuguoxy.com\/geekhome\/?p=2429"},"modified":"2020-03-20T09:30:37","modified_gmt":"2020-03-20T01:30:37","slug":"js%e5%b8%b8%e8%a7%81%e7%9a%84%e8%be%93%e5%85%a5%e5%80%bc%e6%a0%a1%e9%aa%8c%e5%92%8c%e6%9b%bf%e6%8d%a2%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=2429","title":{"rendered":"js\u5e38\u89c1\u7684\u8f93\u5165\u503c\u6821\u9a8c\u548c\u66ff\u6362\u64cd\u4f5c"},"content":{"rendered":"<p>\u6821\u9a8c\u662f\u5426\u4e3a\u4e00\u4e2a\u6570\u5b57\uff0c\u4ee5\u53ca\u8be5\u6570\u5b57\u5c0f\u6570\u70b9\u4f4d\u6570\u662f\u5426\u4e0e\u53c2\u6570floats\u4e00\u81f4<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u82e5\u53c2\u6570floats\u6709\u503c\uff0c\u5219\u6821\u9a8c\u8be5\u6570\u5b57\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\u3002<br \/>\n\u82e5\u53c2\u6570floats\u6ca1\u6709\u503c\uff0c\u5219\u4ec5\u4ec5\u6821\u9a8c\u662f\u5426\u4e3a\u6570\u5b57\u3002<br \/>\n[java]function isNum(value,floats=null){<br \/>\n    let regexp = new RegExp(`^[1-9][0-9]*.[0-9]{${floats}}$|^0.[0-9]{${floats}}$`);<br \/>\n    return typeof value === &#8216;number&#8217; &amp;&amp; floats?regexp.test(String(value)):true;<br \/>\n}<br \/>\nfunction anysicIntLength(minLength,maxLength){<br \/>\n    let result_str = &#8221;;<br \/>\n    if(minLength){<br \/>\n        switch(maxLength){<br \/>\n            case undefined:<br \/>\n                result_str = result_str.concat(`{${minLength-1}}`);<br \/>\n                break;<br \/>\n            case null:<br \/>\n                result_str = result_str.concat(`{${minLength-1},}`);<br \/>\n                break;<br \/>\n            default:<br \/>\n                result_str = result_str.concat(`{${minLength-1},${maxLength-1}}`);<br \/>\n        }<br \/>\n    }else{<br \/>\n        result_str = result_str.concat(&#8216;*&#8217;);<br \/>\n    }<\/p>\n<p>    return result_str;<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u975e\u96f6\u7684\u6b63\u6574\u6570<br \/>\n[java]function isInt(value,minLength=null,maxLength=undefined){<br \/>\n    if(!isNum(value)) return false;<\/p>\n<p>    let regexp = new RegExp(`^-?[1-9][0-9]${anysicIntLength(minLength,maxLength)}$`);<br \/>\n    return regexp.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u975e\u96f6\u7684\u6b63\u6574\u6570<br \/>\n[java]function isPInt(value,minLength=null,maxLength=undefined) {<br \/>\n    if(!isNum(value)) return false;<\/p>\n<p>    let regexp = new RegExp(`^[1-9][0-9]${anysicIntLength(minLength,maxLength)}$`);<br \/>\n    return regexp.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u975e\u96f6\u7684\u8d1f\u6574\u6570<br \/>\n[java]function isNInt(value,minLength=null,maxLength=undefined){<br \/>\n    if(!isNum(value)) return false;<br \/>\n    let regexp = new RegExp(`^-[1-9][0-9]${anysicIntLength(minLength,maxLength)}$`);<br \/>\n    return regexp.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u6574\u6570\u662f\u5426\u5728\u53d6\u503c\u8303\u56f4\u5185<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\nminInt\u4e3a\u5728\u53d6\u503c\u8303\u56f4\u4e2d\u6700\u5c0f\u7684\u6574\u6570<br \/>\nmaxInt\u4e3a\u5728\u53d6\u503c\u8303\u56f4\u4e2d\u6700\u5927\u7684\u6574\u6570<br \/>\n[java]function checkIntRange(value,minInt,maxInt=9007199254740991){<br \/>\n    return Boolean(isInt(value) &amp;&amp; (Boolean(minInt!=undefined &amp;&amp; minInt!=null)?value&gt;=minInt:true) &amp;&amp; (value&lt;=maxInt));<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u4e2d\u56fd\u5927\u9646\u624b\u673a\u53f7<br \/>\n[java]function isTel(value) {<br \/>\n    return \/^1[3,4,5,6,7,8,9][0-9]{9}$\/.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u4e2d\u56fd\u5927\u9646\u4f20\u771f\u6216\u56fa\u5b9a\u7535\u8bdd\u53f7\u7801<br \/>\n[java]function isFax(str) {<br \/>\n    return \/^([0-9]{3,4})?[0-9]{7,8}$|^([0-9]{3,4}-)?[0-9]{7,8}$\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u90ae\u7bb1\u5730\u5740<br \/>\n[java]function isEmail(str) {<br \/>\n    return \/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3aQQ\u53f7\u7801<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u975e0\u5f00\u5934\u76845\u4f4d-13\u4f4d\u6574\u6570<br \/>\n[java]function isQQ(value) {<br \/>\n    return \/^[1-9][0-9]{4,12}$\/.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u7f51\u5740<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u4ee5https:\/\/\u3001http:\/\/\u3001ftp:\/\/\u3001rtsp:\/\/\u3001mms:\/\/\u5f00\u5934\u3001\u6216\u8005\u6ca1\u6709\u8fd9\u4e9b\u5f00\u5934<br \/>\n\u53ef\u4ee5\u6ca1\u6709www\u5f00\u5934(\u6216\u5176\u4ed6\u4e8c\u7ea7\u57df\u540d)\uff0c\u4ec5\u57df\u540d<br \/>\n\u7f51\u9875\u5730\u5740\u4e2d\u5141\u8bb8\u51fa\u73b0\/%*?@&#038;\u7b49\u5176\u4ed6\u5141\u8bb8\u7684\u7b26\u53f7<br \/>\n[java]function isURL(str) {<br \/>\n    return \/^(https:\\\/\\\/|http:\\\/\\\/|ftp:\\\/\\\/|rtsp:\\\/\\\/|mms:\\\/\\\/)?[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+[\\\/=\\?%\\-&amp;_~`@[\\]\\&#8217;:+!]*([^&lt;&gt;\\&quot;\\&quot;])*$\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u4e0d\u542b\u7aef\u53e3\u53f7\u7684IP\u5730\u5740<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\nIP\u683c\u5f0f\u4e3axxx.xxx.xxx.xxx\uff0c\u6bcf\u4e00\u9879\u6570\u5b57\u53d6\u503c\u8303\u56f4\u4e3a0-255<br \/>\n\u96640\u4ee5\u5916\u5176\u4ed6\u6570\u5b57\u4e0d\u80fd\u4ee50\u5f00\u5934\uff0c\u6bd4\u598202<br \/>\n[java]function isIP(str) {<br \/>\n    return \/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])$\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3aIPv6\u5730\u5740<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u652f\u6301IPv6\u6b63\u5e38\u683c\u5f0f<br \/>\n\u652f\u6301IPv6\u538b\u7f29\u683c\u5f0f<br \/>\n[java]function isIPv6(str){<br \/>\n    return Boolean(str.match(\/:\/g)?str.match(\/:\/g).length&lt;=7:false &amp;&amp; \/::\/.test(str)?\/^([\\da-f]{1,4}(:|::)){1,6}[\\da-f]{1,4}$\/i.test(str):\/^([\\da-f]{1,4}:){7}[\\da-f]{1,4}$\/i.test(str));<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u4e2d\u56fd\u5927\u9646\u7b2c\u4e8c\u4ee3\u5c45\u6c11\u8eab\u4efd\u8bc1<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u517118\u4f4d\uff0c\u6700\u540e\u4e00\u4f4d\u53ef\u4e3aX(\u5927\u5c0f\u5199\u5747\u53ef)<br \/>\n\u4e0d\u80fd\u4ee50\u5f00\u5934<br \/>\n\u51fa\u751f\u5e74\u6708\u65e5\u4f1a\u8fdb\u884c\u6821\u9a8c\uff1a\u5e74\u4efd\u53ea\u80fd\u4e3a18\/19\/2*\u5f00\u5934\uff0c\u6708\u4efd\u53ea\u80fd\u4e3a01-12\uff0c\u65e5\u53ea\u80fd\u4e3a01-31<br \/>\n[java]function isIDCard(str){<br \/>\n    return \/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u4e3a\u4e2d\u56fd\u5927\u9646\u90ae\u653f\u7f16\u7801<br \/>\n\u53c2\u6570value\u4e3a\u6570\u5b57\u6216\u5b57\u7b26\u4e32<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u51716\u4f4d\uff0c\u4e14\u4e0d\u80fd\u4ee50\u5f00\u5934<br \/>\n[java]function isPostCode(value){<br \/>\n    return \/^[1-9][0-9]{5}$\/.test(value.toString());<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u4e24\u4e2a\u53c2\u6570\u662f\u5426\u5b8c\u5168\u76f8\u540c\uff0c\u5305\u62ec\u7c7b\u578b<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u503c\u76f8\u540c\uff0c\u6570\u636e\u7c7b\u578b\u4e5f\u76f8\u540c<br \/>\n[java]function same(firstValue,secondValue){<br \/>\n    return firstValue===secondValue;<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u5b57\u7b26\u7684\u957f\u5ea6\u662f\u5426\u5728\u89c4\u5b9a\u7684\u8303\u56f4\u5185<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\nminInt\u4e3a\u5728\u53d6\u503c\u8303\u56f4\u4e2d\u6700\u5c0f\u7684\u957f\u5ea6<br \/>\nmaxInt\u4e3a\u5728\u53d6\u503c\u8303\u56f4\u4e2d\u6700\u5927\u7684\u957f\u5ea6<br \/>\n[java]function lengthRange(str,minLength,maxLength=9007199254740991) {<br \/>\n    return Boolean(str.length &gt;= minLength &amp;&amp; str.length &lt;= maxLength);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u5b57\u7b26\u662f\u5426\u4ee5\u5b57\u6bcd\u5f00\u5934<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u5fc5\u987b\u4ee5\u5b57\u6bcd\u5f00\u5934<br \/>\n\u5f00\u5934\u7684\u5b57\u6bcd\u4e0d\u533a\u5206\u5927\u5c0f\u5199<br \/>\n[java]function letterBegin(str){<br \/>\n    return \/^[A-z]\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u5b57\u7b26\u662f\u5426\u4e3a\u7eaf\u6570\u5b57(\u6574\u6570)<br \/>\n\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u5b57\u7b26\u5168\u90e8\u4e3a\u6b63\u6574\u6570(\u5305\u542b0)<br \/>\n\u53ef\u4ee5\u4ee50\u5f00\u5934<br \/>\n[java]functionpureNum(str) {<br \/>\n    return \/^[0-9]*$\/.test(str);<br \/>\n}<br \/>\nfunction anysicPunctuation(str){<br \/>\n    if(!str) return null;<br \/>\n    let arr = str.split(&#8221;).map(item =&gt; {<br \/>\n        return item = &#8216;\\\\&#8217; + item;<br \/>\n    });<br \/>\n    return arr.join(&#8216;|&#8217;);<br \/>\n}<br \/>\nfunction getPunctuation(str){<br \/>\n    return anysicPunctuation(str) || &#8216;\\\\~|\\\\`|\\\\!|\\\\@|\\\\#|\\\\$|\\\\%|\\\\^|\\\\&amp;|\\\\*|\\\\(|\\\\)|\\\\-|\\\\_|\\\\+|\\\\=|\\\\||\\\\\\|\\\\[|\\\\]|\\\\{|\\\\}|\\\\;|\\\\:|\\\\&quot;|\\\\\\&#8217;|\\\\,|\\\\&lt;|\\\\.|\\\\&gt;|\\\\\/|\\\\?&#8217;;<br \/>\n}<br \/>\nfunction getExcludePunctuation(str){<br \/>\n    let regexp = new RegExp(`[${anysicPunctuation(str)}]`,&#8217;g&#8217;);<br \/>\n    return getPunctuation(&#8216; ~`!@#$%^&amp;*()-_+=\\[]{};:&quot;\\&#8217;,&lt;.&gt;\/?&#8217;.replace(regexp,&#8221;));<br \/>\n}<br \/>\n[\/java]<br \/>\n\u8fd4\u56de\u5b57\u7b26\u4e32\u6784\u6210\u79cd\u7c7b(\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c\u6807\u70b9\u7b26\u53f7)\u7684\u6570\u91cf<br \/>\nLIP\u7f29\u5199\u7684\u7531\u6765\uff1aL(letter \u5b57\u6bcd) + I(uint \u6570\u5b57) + P(punctuation \u6807\u70b9\u7b26\u53f7)<br \/>\n\u53c2\u6570punctuation\u7684\u8bf4\u660e\uff1a<br \/>\npunctuation\u6307\u53ef\u63a5\u53d7\u7684\u6807\u70b9\u7b26\u53f7\u96c6<br \/>\n\u82e5\u9700\u81ea\u5b9a\u4e49\u7b26\u53f7\u96c6\uff0c\u4f8b\u5982\u201c\u4ec5\u5305\u542b\u4e2d\u5212\u7ebf\u548c\u4e0b\u5212\u7ebf\u201d\uff0c\u5c06\u53c2\u6570\u8bbe\u7f6e\u4e3a&#8221;-_&#8221;\u5373\u53ef<br \/>\n\u82e5\u4e0d\u4f20\u503c\u6216\u9ed8\u8ba4\u4e3anull\uff0c\u5219\u5185\u90e8\u9ed8\u8ba4\u6807\u70b9\u7b26\u53f7\u96c6\u4e3a\u9664\u7a7a\u683c\u5916\u7684\u5176\u4ed6\u82f1\u6587\u6807\u70b9\u7b26\u53f7\uff1a~`!@#$%^&#038;*()-_+=[]{};:&#8221;&#8216;,<.>\/?<br \/>\n[java]function getLIPTypes(str,punctuation=null){<br \/>\n    let p_regexp = new RegExp(&#8216;[&#8216;+getPunctuation(punctuation)+&#8217;]&#8217;);<br \/>\n    return \/[A-z]\/.test(str) + \/[0-9]\/.test(str) + p_regexp.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u5b57\u7b26\u4e32\u6784\u6210\u7684\u79cd\u7c7b\u6570\u91cf\u662f\u5426\u5927\u4e8e\u6216\u7b49\u4e8e\u53c2\u6570num\u7684\u503c\u3002\u901a\u5e38\u7528\u6765\u6821\u9a8c\u7528\u6237\u8bbe\u7f6e\u7684\u5bc6\u7801\u590d\u6742\u7a0b\u5ea6\u3002<br \/>\n[java]\u6821\u9a8c\u89c4\u5219\uff1a<br \/>\n\u53c2\u6570num\u4e3a\u9700\u8981\u6784\u6210\u7684\u79cd\u7c7b(\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u6807\u70b9\u7b26\u53f7)\uff0c\u8be5\u503c\u53ea\u80fd\u662f1-3\u3002<br \/>\n\u9ed8\u8ba4\u53c2\u6570num\u7684\u503c\u4e3a1\uff0c\u5373\u8868\u793a\uff1a\u81f3\u5c11\u5305\u542b\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c\u6807\u70b9\u7b26\u53f7\u4e2d\u76841\u79cd<br \/>\n\u82e5\u53c2\u6570num\u7684\u503c\u4e3a2\uff0c\u5373\u8868\u793a\uff1a\u81f3\u5c11\u5305\u542b\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c\u6807\u70b9\u7b26\u53f7\u4e2d\u76842\u79cd<br \/>\n\u82e5\u53c2\u6570num\u7684\u503c\u4e3a3\uff0c\u5373\u8868\u793a\uff1a\u5fc5\u987b\u540c\u65f6\u5305\u542b\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c\u6807\u70b9\u7b26\u53f7<br \/>\n\u53c2\u6570punctuation\u6307\u53ef\u63a5\u53d7\u7684\u6807\u70b9\u7b26\u53f7\u96c6\uff0c\u5177\u4f53\u8bbe\u5b9a\u53ef\u53c2\u8003getLIPTypes()\u65b9\u6cd5\u4e2d\u5173\u4e8e\u6807\u70b9\u7b26\u53f7\u96c6\u7684\u89e3\u91ca\u3002<br \/>\nfunction pureLIP(str,num=1,punctuation=null){<br \/>\n    let regexp = new RegExp(`[^A-z0-9|${getPunctuation(punctuation)}]`);<br \/>\n    return Boolean(!regexp.test(str) &amp;&amp; getLIPTypes(str,punctuation)&gt;= num);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6e05\u9664\u6240\u6709\u7a7a\u683c<br \/>\n[java]function clearSpaces(str){<br \/>\n    return str.replace(\/[ ]\/g,&#8221;);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6e05\u9664\u6240\u6709\u4e2d\u6587\u5b57\u7b26(\u5305\u62ec\u4e2d\u6587\u6807\u70b9\u7b26\u53f7)<br \/>\n[java]function clearCNChars(str){<br \/>\n    return str.replace(\/[\\u4e00-\\u9fa5]\/g,&#8221;);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6e05\u9664\u6240\u6709\u4e2d\u6587\u5b57\u7b26\u53ca\u7a7a\u683c<br \/>\n[java]function clearCNCharsAndSpaces(str){<br \/>\n    return str.replace(\/[\\u4e00-\\u9fa5 ]\/g,&#8221;);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u9664\u4fdd\u7559\u6807\u70b9\u7b26\u53f7\u96c6\u4ee5\u5916\uff0c\u6e05\u9664\u5176\u4ed6\u6240\u6709\u82f1\u6587\u7684\u6807\u70b9\u7b26\u53f7(\u542b\u7a7a\u683c)<br \/>\n\u5168\u90e8\u82f1\u6587\u6807\u70b9\u7b26\u53f7\u4e3a\uff1a~`!@#$%^&#038;*()-_+=[]{};:&#8221;&#8216;,<.>\/?<br \/>\n\u53c2\u6570excludePunctuation\u6307\u9700\u8981\u4fdd\u7559\u7684\u6807\u70b9\u7b26\u53f7\u96c6\uff0c\u4f8b\u5982\u82e5\u4f20\u9012\u7684\u503c\u4e3a&#8217;_&#8217;\uff0c\u5373\u8868\u793a\u6e05\u9664_\u4ee5\u5916\u7684\u5176\u4ed6\u6240\u6709\u82f1\u6587\u6807\u70b9\u7b26\u53f7\u3002<br \/>\n[java]function clearPunctuation(str,excludePunctuation=null){<br \/>\n    let regexp = new RegExp(`[${getExcludePunctuation(excludePunctuation)}]`,&#8217;g&#8217;);<br \/>\n    return str.replace(regexp,&#8221;);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u5305\u542b\u7a7a\u683c<br \/>\n[java]function haveSpace(str) {<br \/>\n    return \/[ ]\/.test(str);<br \/>\n}<br \/>\n[\/java]<br \/>\n\u6821\u9a8c\u662f\u5426\u5305\u542b\u4e2d\u6587\u5b57\u7b26(\u5305\u62ec\u4e2d\u6587\u6807\u70b9\u7b26\u53f7)<br \/>\n[java]function haveCNChars(str){<br \/>\n    return \/[\\u4e00-\\u9fa5]\/.test(str);<br \/>\n}[\/java]<\/p>\n<p>\u539f\u6587\uff1ahttps:\/\/github.com\/Wscats\/CV\/issues\/27<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6821\u9a8c\u662f\u5426\u4e3a\u4e00\u4e2a\u6570\u5b57\uff0c\u4ee5\u53ca\u8be5\u6570\u5b57\u5c0f\u6570\u70b9\u4f4d\u6570\u662f\u5426\u4e0e\u53c2\u6570floats\u4e00\u81f4 \u6821\u9a8c\u89c4\u5219\uff1a \u82e5\u53c2\u6570floats\u6709\u503c\uff0c\u5219\u6821\u9a8c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[109,105],"tags":[],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2429"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2429"}],"version-history":[{"count":5,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2429\/revisions"}],"predecessor-version":[{"id":2440,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2429\/revisions\/2440"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}