{"id":85882,"date":"2020-05-14T07:23:03","date_gmt":"2020-05-13T23:23:03","guid":{"rendered":"http:\/\/4563.org\/?p=85882"},"modified":"2020-05-14T07:23:03","modified_gmt":"2020-05-13T23:23:03","slug":"excelize-%e5%8f%91%e5%b8%83-2-2-0-%e7%89%88%e6%9c%ac%ef%bc%8c-go-%e8%af%ad%e8%a8%80-excel-%e6%96%87%e6%a1%a3%e5%9f%ba%e7%a1%80%e5%ba%93","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85882","title":{"rendered":"Excelize \u53d1\u5e03 2.2.0 \u7248\u672c\uff0c Go \u8bed\u8a00 Excel \u6587\u6863\u57fa\u7840\u5e93"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Excelize \u53d1\u5e03 2.2.0 \u7248\u672c\uff0c Go \u8bed\u8a00 Excel \u6587\u6863\u57fa\u7840\u5e93               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luxurioust <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200516_5ebfc907b0a94.svg\" alt=\"Excelize \u53d1\u5e03 2.2.0 \u7248\u672c\uff0c Go \u8bed\u8a00 Excel \u6587\u6863\u57fa\u7840\u5e93\" \/><\/p>\n<p>Excelize \u662f Go \u8bed\u8a00\u7f16\u5199\u7684\u7528\u4e8e\u64cd\u4f5c Office Excel \u6587\u6863\u57fa\u7840\u5e93\uff0c\u57fa\u4e8e ECMA-376\uff0cISO\/IEC 29500 \u56fd\u9645\u6807\u51c6\u3002\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u8bfb\u53d6\u3001\u5199\u5165\u7531 Microsoft Excel\u2122 2007 \u53ca\u4ee5\u4e0a\u7248\u672c\u521b\u5efa\u7684\u7535\u5b50\u8868\u683c\u6587\u6863\u3002\u652f\u6301 XLSX \/ XLSM \/ XLTM \u7b49\u591a\u79cd\u6587\u6863\u683c\u5f0f\uff0c\u9ad8\u5ea6\u517c\u5bb9\u5e26\u6709\u6837\u5f0f\u3001\u56fe\u7247(\u8868)\u3001\u900f\u89c6\u8868\u3001\u5207\u7247\u5668\u7b49\u590d\u6742\u7ec4\u4ef6\u7684\u6587\u6863\uff0c\u5e76\u63d0\u4f9b\u6d41\u5f0f\u8bfb\u5199 API\uff0c\u7528\u4e8e\u5904\u7406\u5305\u542b\u5927\u89c4\u6a21\u6570\u636e\u7684\u5de5\u4f5c\u7c3f\u3002\u53ef\u5e94\u7528\u4e8e\u5404\u7c7b\u62a5\u8868\u5e73\u53f0\u3001\u4e91\u8ba1\u7b97\u3001\u8fb9\u7f18\u8ba1\u7b97\u7b49\u7cfb\u7edf\u3002\u5165\u9009 2018 \u5f00\u6e90\u4e2d\u56fd\u7801\u4e91 Gitee \u6700\u6709\u4ef7\u503c\u5f00\u6e90\u9879\u76ee GVP\uff0c\u76ee\u524d\u5df2\u6210\u4e3a Go \u8bed\u8a00\u6700\u53d7\u6b22\u8fce\u7684 Excel \u6587\u6863\u57fa\u7840\u5e93\u3002<\/p>\n<h4>\u5f00\u6e90\u4ee3\u7801<\/h4>\n<p><strong>GitHub:<\/strong> github.com\/xuri\/excelize<\/p>\n<p><strong>Gitee:<\/strong> gitee.com\/xurime\/excelize<\/p>\n<p><strong>\u4e2d\u6587\u6587\u6863:<\/strong> xuri.me\/excelize\/zh-hans<\/p>\n<p>2020 \u5e74 5 \u6708 11 \u65e5\uff0c\u793e\u533a\u6b63\u5f0f\u53d1\u5e03\u4e86 2.2.0 \u7248\u672c\uff0c\u8be5\u7248\u672c\u5305\u542b\u4e86\u591a\u9879\u65b0\u589e\u529f\u80fd\u3001\u9519\u8bef\u4fee\u590d\u548c\u517c\u5bb9\u6027\u63d0\u5347\u4f18\u5316\u3002\u4e0b\u9762\u662f\u6709\u5173\u8be5\u7248\u672c\u66f4\u65b0\u5185\u5bb9\u7684\u6458\u8981\uff0c\u5b8c\u6574\u7684\u66f4\u6539\u5217\u8868\u53ef\u67e5\u770b changelog\u3002<\/p>\n<p>\u6709\u5173\u66f4\u6539\u7684\u6458\u8981\uff0c\u8bf7\u53c2\u9605 Release Notes\u3002\u5b8c\u6574\u7684\u66f4\u6539\u5217\u8868\u53ef\u67e5\u770b change log\u3002<\/p>\n<h2>Release Notes<\/h2>\n<p>\u6b64\u7248\u672c\u4e2d\u6700\u663e\u8457\u7684\u53d8\u5316\u5305\u62ec\uff1a<\/p>\n<h4>\u65b0\u589e\u529f\u80fd<\/h4>\n<ul>\n<li>\u4e0b\u5217 API \u7684\u53c2\u6570\u5c06\u4f7f\u7528\u5de5\u4f5c\u8868\u7d22\u5f15\u4ee3\u66ff\u5de5\u4f5c\u8868 ID: <code>GetSheetName<\/code>\u3001<code>GetSheetIndex<\/code>\u3001<code>GetActiveSheetIndex<\/code> \u548c <code>SetActiveSheet<\/code>, \u76f8\u5173 #485<\/li>\n<li>\u65b0\u589e <code>GetSheetList<\/code> API\uff0c\u83b7\u53d6\u4e0e\u5de5\u4f5c\u7c3f\u5185\u987a\u5e8f\u4fdd\u6301\u4e00\u81f4\u7684\u5de5\u4f5c\u8868\u5217\u8868<\/li>\n<li>\u65b0\u589e <code>AddChartSheet<\/code> API\uff0c\u652f\u6301\u521b\u5efa\u56fe\u8868\u5de5\u4f5c\u8868\uff0c\u76f8\u5173 issue #451<\/li>\n<li>\u65b0\u589e <code>UnsetConditionalFormat<\/code> API\uff0c\u652f\u6301\u4ece\u5de5\u4f5c\u8868\u4e2d\u5220\u9664\u6761\u4ef6\u683c\u5f0f\uff0c\u76f8\u5173 issue #571<\/li>\n<li>\u65b0\u589e <code>DeleteDataValidation<\/code> API\uff0c\u652f\u6301\u4ece\u5de5\u4f5c\u8868\u4e2d\u5220\u6570\u636e\u9a8c\u8bc1\u8bbe\u7f6e\uff0c\u76f8\u5173 issue #348<\/li>\n<li>\u65b0\u589e <code>SetCellRichText<\/code> API\uff0c\u652f\u6301\u8bbe\u7f6e\u5355\u5143\u683c\u6362\u884c\u4e0e\u5bcc\u6587\u672c\u6837\u5f0f\uff0c\u76f8\u5173 issue #172<\/li>\n<li>\u65b0\u589e\u51fd\u6570 <code>InsertPageBreak<\/code> \u548c <code>RemovePageBreak<\/code>\uff0c\u652f\u6301\u4ece\u5de5\u4f5c\u8868\u4e2d\u63d2\u5165\u6216\u5220\u9664\u6362\u9875\u7b26\uff0c\u76f8\u5173 issue #492<\/li>\n<li>\u51fd\u6570 <code>AddPivotTable<\/code> API \u66f4\u6539\uff0c\u652f\u6301\u8bbe\u7f6e\u6570\u636e\u900f\u89c6\u8868\u7684\u6570\u636e\u6807\u7b7e\u4e0e\u6c47\u603b\u51fd\u6570\uff0c\u76f8\u5173 issue #582<\/li>\n<li>\u51fd\u6570 <code>AddPivotTable<\/code> \u652f\u6301\u8bbe\u7f6e\u6570\u636e\u900f\u89c6\u8868\u7684\u7b5b\u9009\u9879\uff0c\u76f8\u5173 issue #598<\/li>\n<li>\u51fd\u6570 <code>AddPivotTable<\/code> \u652f\u6301\u6570\u636e\u900f\u89c6\u8868\u4e2d\u7684\u503c\u3001\u884c\u6216\u7b5b\u9009\u9879\u4e3a\u7a7a<\/li>\n<li>\u5bfc\u51fa\u51fd\u6570 <code>ExcelDateToTime<\/code>\uff0c\u63d0\u4f9b\u5c06 Excel \u65f6\u95f4\u683c\u5f0f\u8f6c\u6362\u4e3a <code>time.Time<\/code> \u6570\u636e\u7c7b\u578b<\/li>\n<li>\u5bfc\u51fa <code>Style<\/code> \u7ed3\u6784\u4f53\uff0c\u5141\u8bb8\u901a\u8fc7\u7ed3\u6784\u4f53\u6307\u9488\u6216 JSON \u5b57\u7b26\u521b\u5efa\u6837\u5f0f\uff0c\u76f8\u5173 issue #470<\/li>\n<\/ul>\n<h4>\u95ee\u9898\u4fee\u590d<\/h4>\n<ul>\n<li>\u4fee\u590d\u5f53\u4f7f\u7528 <code>SetConditionalFormat<\/code> \u4e3a\u5355\u5143\u683c\u8bbe\u7f6e\u6761\u4ef6\u683c\u5f0f\u65f6\uff0c<code>&gt;=<\/code> \u548c <code>&lt;=<\/code> \u8fd0\u7b97\u7b26\u4e0d\u751f\u6548\u7684\u95ee\u9898, \u89e3\u51b3 issue #608<\/li>\n<li>\u4fee\u590d\u7279\u5b9a\u60c5\u51b5\u4e0b\u901a\u8fc7 <code>StreamWriter<\/code> \u8fdb\u884c\u6d41\u5f0f\u5199\u5165\u5bfc\u81f4\u5de5\u4f5c\u8868\u635f\u574f\u7684\u95ee\u9898\uff0c\u89e3\u51b3 issue #576<\/li>\n<li>\u63d0\u9ad8\u516c\u5f0f\u4e2d\u7684\u7279\u6b8a\u5b57\u7b26\u517c\u5bb9\u6027\uff0c\u89e3\u51b3 issue #578<\/li>\n<li>\u4fee\u590d\u901a\u8fc7 <code>DuplicateRowTo<\/code> \u8fdb\u884c\u590d\u5236\u884c\u65f6\uff0c\u5408\u5e76\u5355\u5143\u683c\u672a\u88ab\u590d\u5236\u7684\u95ee\u9898\uff0c\u89e3\u51b3 issue #586<\/li>\n<li>\u4fee\u590d\u7279\u5b9a\u60c5\u51b5\u4e0b\u521b\u5efa\u6761\u4ef6\u683c\u5f0f\u540e\uff0c\u76f8\u90bb\u5355\u5143\u683c\u8fb9\u6846\u6837\u5f0f\u4e22\u5931\u95ee\u9898\uff0c\u89e3\u51b3 issue #200<\/li>\n<li>\u4fee\u590d\u901a\u8fc7 <code>GetComments<\/code> \u83b7\u53d6\u6279\u6ce8\u5f0f\u90e8\u5206\u6279\u6ce8\u6570\u636e\u65e0\u6cd5\u83b7\u53d6\u95ee\u9898\uff0c\u89e3\u51b3 issue #345<\/li>\n<li>\u4fee\u590d\u7279\u5b9a\u60c5\u51b5\u4e0b\u901a\u8fc7 <code>GetCellValue<\/code> \u83b7\u53d6\u5355\u5143\u683c\u503c\u9519\u8bef\u95ee\u9898\uff0c\u89e3\u51b3 issue #602<\/li>\n<li>\u4fee\u590d\u56e0\u67d0\u4e9b\u60c5\u51b5\u4e0b\u6587\u6863\u5185\u90e8\u884c\u5185\u5355\u5143\u683c\u7f3a\u5c11 <code>r<\/code> \u5c5e\u6027\u800c\u5bfc\u81f4\u7684 <code>GetCellValue<\/code> \u9519\u8bef\u5730\u8fd4\u56de\u7a7a\u503c\u95ee\u9898<\/li>\n<li>\u517c\u5bb9\u5355\u5143\u683c\u6837\u5f0f\u4e2d\u7684\u7a7a\u503c\u4e0e\u9ed8\u8ba4\u503c\uff0c\u4fee\u590d\u90e8\u5206\u60c5\u51b5\u4e0b\u901a\u8fc7\u7535\u5b50\u8868\u683c\u8f6f\u4ef6\u6253\u5f00\u751f\u6210\u6587\u6863\u4fee\u6539\u6837\u5f0f\u5931\u6548\u7684\u95ee\u9898\uff0c\u89e3\u51b3 issue #628<\/li>\n<\/ul>\n<h4>\u6027\u80fd\u63d0\u5347<\/h4>\n<ul>\n<li>\u4f18\u5316\u5185\u90e8\u51fd\u6570 <code>getRowHeight<\/code>\uff0c\u964d\u4f4e\u5185\u5b58\u5360\u7528<\/li>\n<\/ul>\n<h4>\u5176\u4ed6<\/h4>\n<ul>\n<li>\u79fb\u9664\u5de5\u4f5c\u8868\u8ba1\u7b97\u5c5e\u6027\u4f7f\u90e8\u5206\u7535\u5b50\u8868\u683c\u5e94\u7528\u7a0b\u5e8f\uff08\u5982\uff1a\u91d1\u5c71 WPS\u2122 Office \uff09\u6253\u5f00\u751f\u6210\u7684\u6587\u6863\u8fdb\u884c\u91cd\u65b0\u8ba1\u7b97\u516c\u5f0f<\/li>\n<li>\u5b8c\u5584\u5355\u5143\u6d4b\u8bd5\u4e2d\u7684\u9519\u8bef\u5904\u7406<\/li>\n<li>\u5305\u542b\u7b80\u4f53\u4e2d\u6587\u3001\u82f1\u8bed\u3001\u6cd5\u8bed\u3001\u4fc4\u8bed\u3001\u65e5\u8bed\u548c\u97e9\u8bed\u7684\u591a\u56fd\u8bed\u8a00\u6587\u6863\u7f51\u7ad9\u66f4\u65b0<\/li>\n<li>\u6280\u672f\u4ea4\u6d41\u7fa4<\/li>\n<\/ul>\n<p>DingTalk Group ID: <code>30047129<\/code><\/p>\n<p>QQ Group ID: <code>207895940<\/code><\/p>\n<p> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200516_5ebfc90cdf8c3.png\" alt=\"Excelize \u53d1\u5e03 2.2.0 \u7248\u672c\uff0c Go \u8bed\u8a00 Excel \u6587\u6863\u57fa\u7840\u5e93\" \/>  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1500505\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hellos <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500506\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coderabbit <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\u5728\u7528 2.0.2 \u7248\u672c \u518d\u5f80\u4e0a\u5c31\u4e0d\u80fd\u5728\u5347\u7ea7\u4e86\uff01\u83b7\u53d6\u6570\u636e\u53c8\u53d8\u5f97\u6539\u597d\u591a\u4ee3\u7801\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500507\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : itstudying <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5565\u65f6\u5019\u80fd\u652f\u6301 xls \u6587\u4ef6\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500508\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kios <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f88\u597d\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500509\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BlackBerry999 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u6ca1\u6709 doc pdf ppt \u7684\u57fa\u7840\u5e93\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500510\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neoblackcap <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u8fc7\uff0c\u7684\u786e\u4e0d\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1500511\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wudalang123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e72\u561b\u7528\u7684 \uff1f \u8c01\u80fd\u4e3e\u51fa\u4e00\u4e2a\u5177\u4f53\u843d\u5730\u5b9e\u4f8b\u6765\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Excelize \u53d1\u5e03 2.2.0&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85882"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85882"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85882\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85882"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}