{"id":5062,"date":"2024-09-30T17:01:01","date_gmt":"2024-09-30T09:01:01","guid":{"rendered":""},"modified":"2024-09-30T17:01:01","modified_gmt":"2024-09-30T09:01:01","slug":"\u4e00\u5200\u52a9\u624b_\u5b57\u6570\u7edf\u8ba1\u5de5\u5177app","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5062.html","title":{"rendered":"\u4e00\u5200\u52a9\u624b_\u5b57\u6570\u7edf\u8ba1\u5de5\u5177app"},"content":{"rendered":"

\u5728\u7ebf\u5b57\u6570\u67e5\u8be2\u5de5\u5177\u53ef\u65b9\u4fbf\u7684\u7edf\u8ba1\u51fa\u5b57\u7b26\u4e2a\u6570\u3002 \u5e76\u4e14\u80fd\u591f\u5206\u522b\u7edf\u8ba1\u51fa\u4e2d\u6587\u5b57\u7b26\u603b\u6570\u3001\u4e2d\u6587\u6807\u70b9\u603b\u6570\u3001\u82f1\u6587\u5b57\u7b26\u603b\u6570\u3001\u82f1\u6587\u6807\u70b9\u603b\u6570\u3001\u6570\u5b57\u5b57\u7b26\u603b\u6570\u3001\u82f1\u6587\u5355\u8bcd\u603b\u6570\u3001\u6570\u636e\u5355\u8bcd\u603b\u6570\u3002<\/p>\n

\"\u4e00\u5200\u52a9\u624b_\u5b57\u6570\u7edf\u8ba1\u5de5\u5177app<\/p>\n<\/p>\n

\u4ee3\u7801\u7247\u6bb5<\/p>\n

const workCount = (Words) => { var W = new Object(); var Result = new Array(); var iNumwords = 0; var sNumwords = 0; var sTotal = 0; var iTotal = 0; var eTotal = 0; var otherTotal = 0; var bTotal = 0; var inum = 0; var i =0; for (; i < Words.length; i++) { var c = Words.charAt(i); if (c.match(\/[\\u4e00-\\u9fa5]\/)) { if (isNaN(W[c])) { iNumwords++; W[c] = 1; } iTotal++; } } i =0; for (i = 0; i < Words.length; i++) { var c = Words.charAt(i); if (c.match(\/[^\\x00-\\xff]\/)) { if (isNaN(W[c])) { sNumwords++; } sTotal++; } else { eTotal++; } if (c.match(\/[0-9]\/)) { inum++; } } return { hanzi:iTotal, \/\/\u6c49\u5b57 zishu:inum + iTotal,\/\/\u4e2a\u5b57\u6570 biaodian:sTotal - iTotal, \/\/\u4e2a\u6807\u70b9(\u5168\u89d2) zimu:eTotal - inum, \/\/\u4e2a\u5b57\u6bcd shuzi: inum, \/\/\u4e2a\u6570\u5b57 zifu:iTotal * 2 + (sTotal - iTotal) * 2 + eTotal \/\/\u4e2a\u5b57\u7b26 } } <\/code><\/pre>\n<\/p>\n

\u5728\u7ebf\u5b57\u6570\u7edf\u8ba1\u5de5\u5177 - \u4e00\u5200\u5de5\u5177\u7bb1APP\u5728\u7ebf\u5b57\u6570\u67e5\u8be2\u5de5\u5177\u53ef\u65b9\u4fbf\u7684\u7edf\u8ba1\u51fa\u5b57\u7b26\u4e2a\u6570\u3002 \u5e76\u4e14\u80fd\u591f\u5206\u522b\u7edf\u8ba1\u51fa\u4e2d\u6587\u5b57\u7b26\u603b\u6570\u3001\u4e2d\u6587\u6807\u70b9\u603b\u6570\u3001\u82f1\u6587\u5b57\u7b26\u603b\u6570\u3001\u82f1\u6587\u6807\u70b9\u603b\u6570\u3001\u6570\u5b57\u5b57\u7b26\u603b\u6570\u3001\u82f1\u6587\u5355\u8bcd\u603b\u6570\u3001\u6570\u636e\u5355\u8bcd\u603b\u6570\u3002https:\/\/tools.yidaotool.com\/wordcount<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u5200\u52a9\u624b_\u5b57\u6570\u7edf\u8ba1\u5de5\u5177app\u5728\u7ebf\u5b57\u6570\u67e5\u8be2\u5de5\u5177\u53ef\u65b9\u4fbf\u7684\u7edf\u8ba1\u51fa\u5b57\u7b26\u4e2a\u6570","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5062"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5062"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5062\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}