{"id":107,"date":"2014-08-06T15:24:08","date_gmt":"2014-08-06T07:24:08","guid":{"rendered":"http:\/\/yusemo.com\/?p=107"},"modified":"2014-08-06T15:24:38","modified_gmt":"2014-08-06T07:24:38","slug":"math-array-string-%e5%af%b9%e8%b1%a1%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/yusemo.com\/?p=107","title":{"rendered":"Math Array String \u5bf9\u8c61\u65b9\u6cd5"},"content":{"rendered":"<p>&nbsp; &nbsp; &nbsp;\u6700\u8fd1\u770b\u4e86\u5f88\u591a\u4e0d\u540c\u7684\u9762\u8bd5\u9898\uff0c\u5176\u4e2d\u770b\u5230\u4e00\u9898\u5199\u51faMath Array String\u7684\u65b9\u6cd5\u3002\u5c3d\u53ef\u80fd\u5199\u5168\u3002\u7a81\u7136\u5c31\u61f5\u4e86\u3002\u5c31\u53ea\u8bb0\u5f97array\u7684pop,join,concat,push\u7b49\uff01\u5bf9\u4e8e\u57fa\u7840\u7684\u77e5\u8bc6\u7684\u4e0d\u624e\u5b9e\u6211\u81ea\u6211\u53cd\u7701\u7279\u6b64\u8bb0\u5f55\uff0c\u9632\u6b62\u81ea\u5df1\u8001\u4eba\u75f4\u5446\u3002<\/p>\n<p><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">Math\u5bf9\u8c61\u65b9\u6cd5<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 1 abs(x) \u8fd4\u56de\u7edd\u5bf9\u503c<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 2 ceil(x)\u4e0a floor(x)\u4e0b &nbsp;round(x)\u6700\u8fd1 \u5bf9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 3 exp(x) \u8fd4\u56dee\u7684\u6307\u6570 log(x)\u8fd4\u56de\u6570\u7684\u81ea\u7136\u5bf9\u6570\u5e95\u4e3ae<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 4 max(x,y) min(x,y) \u8fd4\u56dex,y\u7684\u6700\u5927(\u5c0f)\u503c<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 5 pow(x,y)\u8fd4\u56dex\u7684y\u6b21\u65b9 sqrt(x,y)\u8fd4\u56dex,y\u7684\u5e73\u65b9\u6839<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 6 tan() sin() cos() atan() asin acos()<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 7 random() \u751f\u62100-1\u4e4b\u95f4\u7684\u968f\u673a\u6570<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 8 valueOf() \u8fd4\u56demath\u5bf9\u8c61\u7684\u539f\u59cb\u503c<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">Array\u5bf9\u8c61\u65b9\u6cd5<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 1 concat() \u94fe\u63a5\u4e24\u4e2a\u6216\u66f4\u591a\u7684\u6570\u7ec4<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 2 join() \u628a\u6570\u7ec4\u7684\u6240\u6709\u5143\u7d20\u653e\u5230\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5e76\u901a\u8fc7\u6307\u5b9a\u5b57\u7b26\u94fe\u63a5<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 3 pop() shift()\u5220\u9664\u5e76\u8fd4\u56de\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u6216\u7b2c\u4e00\u4e2a\u5143\u7d20<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 4 push() unshift() \u50cf\u6570\u7ec4\u7684\u5934\u6216\u5c3e\u90e8\u589e\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u65b0\u5143\u7d20\u5e76\u8fd4\u56de\u65b0\u7684\u957f\u5ea6<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 5 reverse() \u7ffb\u8f6c\u6570\u7ec4<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 6 slice(start\u5fc5\u9700\uff0cend \u53ef\u9009) \u8fd4\u56de\u9009\u53d6\u7684\u5143\u7d20 \u5982\u679c\u662f\u8d1f\u6570\u4ece\u5c3e\u90e8\u5f00\u59cb<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 7 sort()\u5bf9\u5143\u7d20\u8fdb\u884c\u6392\u5e8f<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 8 toString() \u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32 tolocalString()\u8fd4\u56de\u672c\u5730\u5b57\u7b26\u4e32 \u5982date\u6839\u636e\u897f\u65b9\u4e2d\u65b9\u7684\u4e60\u60ef\u4e0d\u540c\u800c\u8f6c\u53d8<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 9 splice(start,end,new) \u5220\u9664\u5143\u7d20 \u5e76\u4e3a\u6570\u7ec4\u6dfb\u52a0\u65b0\u5143\u7d20\uff0c\u7528\u6cd5\u7c7b\u4f3c\u4e8eslice end\u4e3a0\u4e0d\u5220\u9664\u5143\u7d20+<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">String\u5bf9\u8c61\u65b9\u6cd5<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 1 charAt() \u8fd4\u56de\u6307\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 2 charCodeAt() \u8fd4\u56de\u6307\u5b9a\u4f4d\u7f6e\u5b57\u7b26\u7684Unicode\u7f16\u7801<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 3 concat() \u94fe\u63a5\u5b57\u7b26\u4e32<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 4 indexOf(string,from) \u68c0\u7d22\u5b57\u7b26\u4e32\uff0c\u5bf9\u5927\u5c0f\u5199\u654f\u611f\uff0cfrom\u8868\u793a\u4ece\u7b2c\u51e0\u4e2a\u5b57\u7b26\u5f00\u59cb\u68c0\u7d22 \u672a\u627e\u5230\u8fd4\u56de-1<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; &nbsp; lastindexof()\u4ece\u540e\u5f80\u524d<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 5 match() \u627e\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 6 replace() \u66ff\u6362\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u503c<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 7 search() \u67e5\u627e\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u503c \u8fd4\u56de\u4f4d\u7f6e<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 8 big bink bold\u4e00\u5806\u63a7\u5236\u6837\u5f0f\u65b9\u6cd5<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 9 split() \u628a\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u5b57\u7b26\u4e32\u6570\u7ec4<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 10 subStr(start,number) \u8fd4\u56de\u6307\u5b9a\u957f\u5ea6\u7684\u5b57\u7b26\u4e32 &nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; &nbsp; &nbsp;slice(start,end\u53ef\u9009) \u63d0\u53d6\u5b57\u7b26\u4e32\u7247\u6bb5 \u5e76\u8fd4\u56de\u63d0\u53d6\u5b57\u7b26\u4e32\u90e8\u5206<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; &nbsp; &nbsp;subString(start,end) \u8fd4\u56de\u6307\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26\u4e32<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal; background-color: rgb(255, 255, 255);\"\/><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);\">&nbsp; 11 toLowerCase()\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5c0f\u5199 toUpperCase()\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5927\u5199<\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp;\u6700\u8fd1\u770b\u4e86\u5f88\u591a\u4e0d\u540c\u7684\u9762\u8bd5\u9898\uff0c\u5176\u4e2d\u770b\u5230\u4e00\u9898\u5199\u51faMath Array Str [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,1],"tags":[],"_links":{"self":[{"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yusemo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":2,"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/yusemo.com\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/yusemo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yusemo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yusemo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}