{"id":30710,"date":"2024-11-25T17:40:03","date_gmt":"2024-11-25T09:40:03","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30710\/"},"modified":"2024-11-25T17:40:03","modified_gmt":"2024-11-25T09:40:03","slug":"%e6%b5%85%e8%b0%88-k%e7%ba%bf-%e6%a0%b8%e5%bf%83%e6%9e%b6%e6%9e%84%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30710\/","title":{"rendered":"\u6d45\u8c08 K\u7ebf \u6838\u5fc3\u67b6\u6784\u8bbe\u8ba1"},"content":{"rendered":"<p>\u524d\u8a00\uff1a\u6211\u4eec\u76ee\u7684\u662f\u60f3\u8981\u4e00\u6761\u5e73\u6ed1\u7684\u66f2\u7ebf\u6765\u8868\u793a\u5747\u7ebf\u7b49\uff0c\u800c\u4e0d\u662f\u4e00\u6761\u8f6c\u6298\u70b9\u660e\u663e\u7684\u6298\u7ebf\u3002\u56e0\u6b64\u8fd8\u5f97\u7ee7\u7eed\u63a2\u7d22api\u3002\u6211\u4eec\u53d1\u73b0\uff0c\u5728canvas API\u4e2d\uff0c\u80fd\u591f\u753b\u51fa\u66f2\u7ebf\u7684\u67092\u4e2abeZierCurveTo(num1,&nbsp;num2,&nbsp;num3,&nbsp;num4,&nbsp;x,&nbsp;y) quadraticCurveTo(num1,&nbsp;num2,&nbsp;x,&nbsp;y)\u8fd9\u4e24\u4e2aapi\u90fd\u662f\u901a\u8fc7\u8d1d\u585e\u5c14\u66f2\u7ebf\u6765\u7ed8\u5236\u8def\u5f84\u3002\u597d\u5728\u5b66\u4e60PS\u7684\u65f6\u5019\uff0c\u5bf9\u8d1d\u585e\u5c14\u66f2\u7ebf\u7684\u5177\u4f53\u8868\u73b0\u4e5f\u662f\u6709\u4e00\u5b9a\u7684\u719f\u7ec3\u7a0b\u5ea6\u7684\uff0c\u56e0\u6b64\u77e5\u9053\u8981\u786e\u5b9a\u4e00\u6761\u7531\u591a\u4e2a\u70b9\u7ec4\u6210\u7684\u66f2\u7ebf\u8def\u5f84\uff0c\u6bcf\u4e00\u4e2a\u8f6c\u6298\u70b9\u90fd\u5f97\u67092\u4e2a\u63a7\u5236\u70b9\u6765\u63a7\u5236\u66f2\u7ebf\u7684\u8868\u73b0\u800c\u5728\u66f2\u7ebf\u7684\u8d77\u70b9\u548c\u7ec8\u70b9\uff0c\u5c31\u53ea\u80fd\u6709\u4e00\u4e2a\u63a7\u5236\u70b9\u4e86\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5728\u7ed8\u5236\u8d77\u70b9\u548c\u7ec8\u70b9\u65f6\uff0c\u5f97\u4f7f\u7528quadraticCurveTo\uff0c\u7ed8\u5236\u4e2d\u95f4\u7684\u70b9\uff0c\u5219\u4f7f\u7528beZierCurveTo\u3002\u73b0\u5728\u7684\u96be\u70b9\u662f\uff0c\u5982\u4f55\u901a\u8fc7\u5df2\u77e5\u7684\u8981\u7ecf\u8fc7\u7684\u70b9\uff0c\u8ba1\u7b97\u51fa\u4ed6\u4eec<\/p>\n<p><span style=\"line-height: 1.76em\">1. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/8e5a29891938bb128d295e9d7f4471fb.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u6d45\u8c08 K\u7ebf \u6838\u5fc3\u67b6\u6784\u8bbe\u8ba1\u63d2\u56fe\" alt=\"\u6d45\u8c08 K\u7ebf \u6838\u5fc3\u67b6\u6784\u8bbe\u8ba1\u63d2\u56fe\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f \u4f7f\u7528canvas\u5236\u4f5cK\u7ebf\u5b9e\u4f8b\u8be6\u89e3\u7684\u76f8\u5173\u8d44\u6599,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">2. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1aphp\u80a1\u7968K\u7ebf\u56fe\u751f\u6210\u4ee3\u7801\u3002\u6b64\u7a0b\u5e8f\u5b9e\u73b0php\u753b\u67f1\u72b6\u56fe\/\/\u5b83\u7684\u8bbe\u8ba1\u601d\u60f3\u662f\uff1a\u9996\u5148\u4ee5\u7528imagecreate\uff08\uff09\u6765\u751f\u6210\u4e00\u4e2a\u7a7a\u767d\u56fe\u5f62\uff1b\u5176\u7a0b\u5e8f\u5b9e\u73b0\u5982\u4e0b\uff1a\/\/\u9700\u8981\u4e24\u79cd\u4e0d\u540c\u7684\u989c\u8272\uff0c\u6b63\u6570\u4e00\u4e2a<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">3. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u5982\u4f55\u5229\u7528php\u751f\u6210\u7c7b\u4f3c\u4e8e\u80a1\u5e02\u7684K\u7ebf\u56fe\u5047\u5982\uff1a &nbsp; \u6211\u6709\u4e2a\u4e00\u4e8c\u7ef4\u6570\u7ec4\uff1a &nbsp; &nbsp; &nbsp; $data = array ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array(&#8216;time&#8217;=&gt;&#8217;XXXX-XX-XX_1&#8217;, &#8216;moeny&#8217;=&gt;&#8217;0.00&#8217;), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arra<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">4. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1awindows\u73af\u5883\u4e0b php\u5b89\u88c5chartdirector\u9700\u8981\u7528php\u7ed8\u5236K\u7ebf\u56fe\uff0c\u767e\u5ea6\u4e4b\u540e\u8bf4\u662f\u53ef\u4ee5\u4f7f\u7528chartdirector\uff0c\u4e0b\u8f7d\u540e\u672c\u5730\u8bbf\u95ee\uff1a&nbsp;http:\/\/localhost\/k\/ChartDirector\/lib\/FinanceChart.php\u51fa\u73b0\u9519\u8befError&nbsp;Loading&nbsp;ChartDirector&amp;nbsp<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">5. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u5982\u4f55\u5229\u7528php\u751f\u6210\u7c7b\u4f3c\u4e8e\u80a1\u5e02\u7684K\u7ebf\u56fe\u5047\u5982\uff1a &nbsp; \u6211\u6709\u4e2a\u4e00\u4e8c\u7ef4\u6570\u7ec4\uff1a &nbsp; &nbsp; &nbsp; $data = array ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array(&#8216;time&#8217;=&gt;&#8217;XXXX-XX-XX_1&#8217;, &#8216;moeny&#8217;=&gt;&#8217;0.00&#8217;), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arra<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">6. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1aphp\u80a1\u7968K\u7ebf\u56fe\u751f\u6210\u4ee3\u7801\u3002\u6b64\u7a0b\u5e8f\u5b9e\u73b0php\u753b\u67f1\u72b6\u56fe\/\/\u5b83\u7684\u8bbe\u8ba1\u601d\u60f3\u662f\uff1a\u9996\u5148\u4ee5\u7528imagecreate\uff08\uff09\u6765\u751f\u6210\u4e00\u4e2a\u7a7a\u767d\u56fe\u5f62\uff1b\u5176\u7a0b\u5e8f\u5b9e\u73b0\u5982\u4e0b\uff1a\/\/\u9700\u8981\u4e24\u79cd\u4e0d\u540c\u7684\u989c\u8272\uff0c\u6b63\u6570\u4e00\u4e2a<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">7. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u3000\u3000\u3000\u3000\u6211\u4eec\u7ecf\u5e38\u8981\u5728\u7f51\u9875\u770b\u5230\u4e00\u4e9b\u52a8\u6001\u66f4\u65b0\u7684\u56fe\u7247,\u6700\u5e38\u89c1\u7684\u83ab\u8fc7\u4e8e\u80a1\u7968\u7684K\u7ebf\u56fe\uff0c\u672c\u6587\u8bd5\u56fe\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u4f8b\uff0c\u5411\u5927\u5bb6\u5c55\u793a\u5982\u4f55\u901a\u8fc7JSP \u8c03\u7528JavaBean\u5728\u7f51\u9875\u4e0a\u52a8\u6001\u751f\u6210\u67f1\u72b6\u56fe\u3002<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">8. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u4e09\u3001\u7528PHP\u52a8\u6001\u751f\u6210\u56fe\u50cf WAP\u5e94\u7528\u4f7f\u7528\u4e00\u79cd\u7279\u6b8a\u9ed1\u767d\u7684\u56fe\u50cf\u683c\u5f0fWBMP\u3002\u6211\u4eec\u53ef\u4ee5\u7528\u4e00\u4e9b\u5de5\u5177\u6765\u5c06\u5df2\u6709\u56fe\u50cf\u8f6c\u6362\u6210WBMP\u683c\u5f0f \uff0c \u7136\u540e\u5728WML\u6587\u6863\u4e2d\u4f7f\u7528\u3002\u4f46\u662f\u5728WAP\u7ad9\u70b9\u4e0a\u5982\u679c\u80fd\u52a8\u6001\u5730\u751f\u6210\u6240\u9700\u56fe\u50cf\u5982K\u7ebf\u56fe\u7b49 \uff0c \u5c06\u4f1a\u6709\u5e7f\u9614\u7684\u5e94\u7528\u524d\u666f\u3002\u5e78\u8fd0\u7684\u662f \uff0c PHP\u7684GD\u5e93 ( \u7248\u672c1 . 8\u4ee5\u4e0a ) \u5df2\u7ecf<\/span><\/p>\n<p><strong>\u3010\u76f8\u5173\u95ee\u7b54\u63a8\u8350\u3011\uff1a<\/strong><\/p>\n<\/p>\n<\/p>\n<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6d45\u8c08 K\u7ebf \u6838\u5fc3\u67b6\u6784\u8bbe\u8ba1\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\uff1a\u6211\u4eec\u76ee\u7684\u662f\u60f3\u8981\u4e00\u6761\u5e73\u6ed1\u7684\u66f2\u7ebf\u6765\u8868\u793a\u5747\u7ebf\u7b49\uff0c\u800c\u4e0d\u662f\u4e00\u6761\u8f6c\u6298\u70b9\u660e\u663e\u7684\u6298\u7ebf\u3002\u56e0\u6b64\u8fd8\u5f97\u7ee7\u7eed\u63a2\u7d22api\u3002\u6211\u4eec\u53d1\u73b0\uff0c\u5728canvas API\u4e2d\uff0c\u80fd\u591f\u753b\u51fa\u66f2\u7ebf\u7684\u67092\u4e2abeZierCurveTo(num1,&nbsp;num2,&nbsp;num3,&nbsp;num4,&nbsp;x,&nbsp;y) quadraticCurveTo(num1,&nbsp;num2,&nbsp;x,&nbsp;y)\u8fd9\u4e24\u4e2aapi\u90fd\u662f\u901a\u8fc7\u8d1d\u585e\u5c14\u66f2\u7ebf\u6765\u7ed8\u5236\u8def\u5f84\u3002\u597d\u5728\u5b66\u4e60PS\u7684\u65f6\u5019\uff0c\u5bf9\u8d1d\u585e\u5c14\u66f2\u7ebf\u7684\u5177\u4f53\u8868\u73b0\u4e5f\u662f\u6709\u4e00\u5b9a\u7684\u719f\u7ec3\u7a0b\u5ea6\u7684\uff0c\u56e0\u6b64\u77e5\u9053\u8981\u786e\u5b9a\u4e00\u6761\u7531\u591a\u4e2a\u70b9\u7ec4\u6210\u7684\u66f2\u7ebf\u8def\u5f84\uff0c\u6bcf\u4e00\u4e2a\u8f6c\u6298\u70b9\u90fd\u5f97\u67092\u4e2a\u63a7\u5236\u70b9\u6765\u63a7\u5236\u66f2\u7ebf\u7684\u8868\u73b0\u800c\u5728\u66f2\u7ebf\u7684\u8d77\u70b9\u548c\u7ec8\u70b9\uff0c\u5c31\u53ea\u80fd\u6709\u4e00\u4e2a\u63a7\u5236\u70b9\u4e86\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5728\u7ed8\u5236\u8d77\u70b9\u548c\u7ec8\u70b9\u65f6\uff0c\u5f97\u4f7f\u7528quadraticCurveTo\uff0c\u7ed8\u5236\u4e2d\u95f4\u7684\u70b9\uff0c\u5219\u4f7f\u7528beZierCurveTo\u3002\u73b0\u5728\u7684\u96be\u70b9\u662f\uff0c\u5982\u4f55\u901a\u8fc7\u5df2\u77e5\u7684\u8981\u7ecf\u8fc7\u7684\u70b9\uff0c\u8ba1\u7b97\u51fa\u4ed6\u4eec 1. \u7b80\u4ecb\uff1a\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f \u4f7f\u7528canvas\u5236\u4f5cK\u7ebf\u5b9e\u4f8b\u8be6\u89e3\u7684\u76f8\u5173\u8d44\u6599,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b 2. \u7b80\u4ecb\uff1aphp\u80a1\u7968K\u7ebf\u56fe\u751f\u6210\u4ee3\u7801\u3002\u6b64\u7a0b\u5e8f\u5b9e\u73b0php\u753b\u67f1\u72b6\u56fe\/\/\u5b83\u7684\u8bbe\u8ba1\u601d\u60f3\u662f\uff1a\u9996\u5148\u4ee5\u7528imagecreate\uff08\uff09\u6765\u751f\u6210\u4e00\u4e2a\u7a7a\u767d\u56fe\u5f62\uff1b\u5176\u7a0b\u5e8f\u5b9e\u73b0\u5982\u4e0b\uff1a\/\/\u9700\u8981\u4e24\u79cd\u4e0d\u540c\u7684\u989c\u8272\uff0c\u6b63\u6570\u4e00\u4e2a 3. \u7b80\u4ecb\uff1a\u5982\u4f55\u5229\u7528php\u751f\u6210\u7c7b\u4f3c\u4e8e\u80a1\u5e02\u7684K\u7ebf\u56fe\u5047\u5982\uff1a &nbsp; \u6211\u6709\u4e2a\u4e00\u4e8c\u7ef4\u6570\u7ec4\uff1a &nbsp; &nbsp; &nbsp; $data = array ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array(&#8216;time&#8217;=&gt;&#8217;XXXX-XX-XX_1&#8217;, &#8216;moeny&#8217;=&gt;&#8217;0.00&#8217;), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arra 4. \u7b80\u4ecb\uff1awindows\u73af\u5883\u4e0b php\u5b89\u88c5chartdirector\u9700\u8981\u7528php\u7ed8\u5236K\u7ebf\u56fe\uff0c\u767e\u5ea6\u4e4b\u540e\u8bf4\u662f\u53ef\u4ee5\u4f7f\u7528chartdirector\uff0c\u4e0b\u8f7d\u540e\u672c\u5730\u8bbf\u95ee\uff1a&nbsp;http:\/\/localhost\/k\/ChartDirector\/lib\/FinanceChart.php\u51fa\u73b0\u9519\u8befError&nbsp;Loading&nbsp;ChartDirector&amp;nbsp 5. \u7b80\u4ecb\uff1a\u5982\u4f55\u5229\u7528php\u751f\u6210\u7c7b\u4f3c\u4e8e\u80a1\u5e02\u7684K\u7ebf\u56fe\u5047\u5982\uff1a &nbsp; \u6211\u6709\u4e2a\u4e00\u4e8c\u7ef4\u6570\u7ec4\uff1a &nbsp; &nbsp; &nbsp; $data [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-30710","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=30710"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30710\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}