{"id":6009,"date":"2025-03-21T09:45:05","date_gmt":"2025-03-21T01:45:05","guid":{"rendered":"https:\/\/blog.qdac.cc\/?p=6009"},"modified":"2025-03-24T13:15:27","modified_gmt":"2025-03-24T05:15:27","slug":"%e6%9d%82%e8%b0%88%e4%bd%bf%e7%94%a8-delphi-12-2-%e7%9a%84-smartinsight-ai-%e6%94%af%e6%8c%81%e4%b8%80%e4%ba%9b%e4%bd%93%e4%bc%9a","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=6009","title":{"rendered":"[\u6742\u8c08]\u4f7f\u7528 Delphi 12.2+ \u7684 SmartInsight AI \u652f\u6301\u4e00\u4e9b\u4f53\u4f1a"},"content":{"rendered":"\n<p>Delphi 12.2 \u5f00\u59cb\u5f15\u5165\u4e86 SmartInsight \u5bf9 AI \u7f16\u7a0b\u6a21\u578b\u7684\u652f\u6301\uff0c\u6700\u8fd1\u7b80\u5355\u7684\u8bd5\u7528\u4e86\u4e00\u4e0b\uff0c\u603b\u4f53\u4e0b\u81ea\u5df1\u7684\u4e00\u70b9\u4f53\u4f1a\u3002\u5148\u8bf4\u4e00\u4e0b\u7ed3\u8bba\uff1a\u6709\u6bd4\u6ca1\u6709\u5f3a\uff0c\u5403\u914d\u7f6e\u548c\u8010\u5fc3\u3002<\/p>\n\n\n\n<p><strong>\u3010\u8865\u5145\u6d4b\u8bd5\u3011<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4f7f\u7528\u4eb2\u621a\u5bb6\u7684 AMD 7800X3D+AMD 7800XT 16G + Windows 10 48G \u5e73\u53f0\uff0cLMStudio \u6d4b\u8bd5\u901f\u5ea6\u4e3a &lt;40 tokens<\/li>\n\n\n\n<li>\u4f20\u8bf4\u4e2d\uff0cLMStudio \u6bd4 Ollama \u5feb 20%\uff0c\u5728\u6211\u4e2a\u4eba\u673a\u5668\u4e0a\u6d4b\u8bd5\u5e76\u4e0d\u662f\uff0c\u53cd\u800c ollama \u6bd4 LM Studio \u5feb\u5f97\u591a\uff0c\u5b9e\u9645\u5e94\u7528\u73af\u5883\uff0c\u5927\u5bb6\u53ef\u4ee5\u90fd\u5b89\u88c5\u6d4b\u8bd5\u4e0b\u3002<\/li>\n\n\n\n<li>\u53e6\u5916\uff0cLM Studio \u4e2d\u7684 deepseek-coder-v2:16b \u8981\u6bd4 ollama \u7684\u6a21\u578b\u5e93\u4e2d\u540c\u4e00\u6a21\u578b\u5927 1GB+\uff0c\u8fd9\u4e5f\u53ef\u80fd\u662f\u901f\u5ea6\u6ca1\u6709\u5feb 20% \u7684\u539f\u56e0\u4e4b\u4e00\u5427\uff0c\u4f46\u6548\u7387\u6ca1\u6709\u6d4b\u8bd5\u4ec0\u4e48\u533a\u522b\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2025\/03\/\u56fe\u7247.png\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"463\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2025\/03\/\u56fe\u7247.png\" alt=\"\" class=\"wp-image-6011\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2025\/03\/\u56fe\u7247.png 768w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2025\/03\/\u56fe\u7247-300x181.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5f00\u542f AI \u7f16\u7a0b:\n<ul class=\"wp-block-list\">\n<li>\u6211\u4eec\u9009\u62e9 ollama \u6765\u90e8\u7f72\u672c\u5730\u6a21\u578b\uff0c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u8981\u9009\u62e9\u4e00\u4e9b\u5408\u9002\u7684\u6a21\u578b\uff0c\u4fdd\u8bc1\u6211\u4eec\u7684\u7cfb\u7edf\u80fd\u591f\u8dd1\u8d77\u6765\uff08\u4ee5\u6211\u7cfb\u7edf 10700+32GB RAM \u4e3a\u57fa\u51c6\uff09\uff0c\u7ecf\u8fc7\u6d4b\u8bd5\uff1a\n<ul class=\"wp-block-list\">\n<li>deepseek-coder-v2:16b \u901f\u5ea6 17.68 tokens\/s\uff0c\u5728 7950X+64G DDR5 6200+1050 ti \u8dd1\u51fa\u4e86\u63a5\u8fd1 40tokens\/s \u7684\u901f\u5ea6\uff08Deepin v23+ollama 0.6.2\uff09<\/li>\n\n\n\n<li>qwen2.5-coder:7b \u901f\u5ea6 7.26 tokens\/s<\/li>\n\n\n\n<li>codegemma:7b \u901f\u5ea6 6.08 tokens\/s<\/li>\n\n\n\n<li>starcoder2:7b \u901f\u5ea6 13.70 tokens\/s,\u4f46\u6211\u95ee\u4ec0\u4e48\u4ed6\u76f4\u63a5\u539f\u6587\u56de\u590d\u6211\u662f\u4ec0\u4e48\u9b3c\uff1f<\/li>\n\n\n\n<li>stable:3b \u901f\u5ea6 14.94 tokens\/s\uff0c\u4e0d\u8fc7 3b \u53c2\u6570\u592a\u5c11<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u6240\u4ee5\u7efc\u4e0a\uff0cdeepseek-coder-v2:16b \u5728\u6211\u76ee\u524d\u7684\u673a\u5668\u4e0a\u5e94\u8be5\u662f\u6bd4\u8f83\u597d\u7684\u4e00\u4e2a\u9009\u62e9<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5b9e\u9645\u4f53\u9a8c:\n<ul class=\"wp-block-list\">\n<li>\u54cd\u5e94\u901f\u5ea6\uff1a \u611f\u89c9\u6ca1\u6709\u91c7\u7528SSE\u6a21\u5f0f\uff0c\u6240\u4ee5\u9700\u8981\u7b49\u5f85\u5168\u90e8\u8fd4\u56de\u624d\u80fd\u5f97\u5230\u7ed3\u679c\uff0c\u4f1a\u7ed9\u4eba\u611f\u89c9\u6bd4\u8f83\u6162\u3002<\/li>\n\n\n\n<li>\u529f\u80fd\u53ef\u7528\u6027\uff1a\u4e0d\u8981\u6307\u671b CodeSight AI \u7684\u5b9e\u65f6\u63d0\u793a\u53ca\u5206\u6790\uff0c\u8fd9\u4e2a\u529f\u80fd\u5bf9\u7b97\u529b\u7684\u8981\u6c42\u592a\u9ad8\u3002\u76ee\u524d\u53ef\u4ee5\u4e3b\u8981\u53ef\u80fd\u5b8c\u6210\uff1a<br>&#8211; \u4ee3\u7801\u7684\u9605\u8bfb\u7406\u89e3\uff1a\u8ba9 AI \u89e3\u91ca\u4ee3\u7801\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u65b9\u4fbf\u8bfb\u522b\u4eba\u7684\u4ee3\u7801<br>&#8211; \u67e5\u627e\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848\uff1a\u8ba9 AI \u68c0\u67e5\u4f60\u7684\u51fd\u6570\u662f\u5426\u6709\u95ee\u9898\uff0c\u505a\u5230 AI \u8f85\u52a9\u5ba1\u67e5\u4ee3\u7801<br>&#8211; \u4e3a\u4ee3\u7801\u6dfb\u52a0\u6ce8\u91ca\uff1a\u53ef\u4ee5\u7701\u4e0b\u4f60\u7684\u5f88\u5927\u4e00\u90e8\u5206\u5199\u6ce8\u91ca\u7684\u7cbe\u529b<br>&#8211; \u4f18\u5316\u4ee3\u7801\uff1a\u53ef\u4ee5\u7528\u6765\u5e2e\u4f60\u8c03\u6574\u4f18\u5316\u4ee3\u7801<br>&#8211; \u5176\u5b83\u529f\u80fd\uff1a\u53ef\u4ee5\u7528\uff0c\u770b\u9700\u8981\u548c\u8010\u5fc3\uff0c\u7b80\u5355\u7684\u4ee3\u7801\u7b49\u4ed6\u51fa\u6765\uff0c\u4f60\u53ef\u80fd\u65e9\u5199\u5b8c\u4e86\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\u53cd\u9988\uff1a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7531\u4e8e\u53d1\u8d77\u8bf7\u6c42\u90fd\u662f\u82f1\u6587\uff0c\u6240\u4ee5\u56de\u7b54\u90fd\u662f\u82f1\u6587\u3002\u5982\u679c\u6211\u4eec\u8981\u8ba9 AI \u56de\u590d\u4e2d\u6587\uff0c\u9700\u8981\u5728\u5185\u5bb9\u4e2d\u5305\u542b\u201c\u4e2d\u6587\u201d\u8fd9\u4e2a\u5173\u952e\u8bcd\u5373\u53ef\uff0c\u6bd4\u5982\u4e0b\u9762\u5c31\u53ef\u4ee5\u8ba9\u56de\u590d\u4e2d\u6587\uff0c\u4e0d\u8fc7\u6700\u5b89\u5168\u662f\u7684\u5199&#8221;\u4f7f\u7528\u4e2d\u6587\u56de\u590d&#8221;\u4e00\u7c7b\u7684\u5b57\u6837\uff1a<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u4e2d\u6587\nprocedure Test();\nvar\n  p,pd: PInteger;\nbegin\n  GetMem(p, 100);\n  try\n    pd:=p;\n    for var I := 0 to 25 do\n    begin\n      pd^ := 0;\n      Inc(pd);\n    end;\n  finally\n    FreeMem(p);\n  end;\n\nend;<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u9009\u4e2d\uff0c\u7136\u540e\u9009\u62e9  SmartCodeInsight-&gt;Explain the Code\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(************* Explanation\n***************\n\u8fd9\u6bb5\u4ee3\u7801\u662f\u4e00\u4e2aDelphi\u6216Pascal\u8bed\u8a00\u7684\u7a0b\u5e8f\uff0c\u7528\u4e8e\u5206\u914d\u5185\u5b58\u5e76\u521d\u59cb\u5316\u8fd9\u5757\u5185\u5b58\u3002\u4e0b\u9762\u662f\u5bf9\u4ee3\u7801\u7684\u8be6\u7ec6\u89e3\u91ca\uff1a\n\n```delphi\n\/\/\u4e2d\u6587\nprocedure\nTest();\nvar\n  p, pd: PInteger;\nbegin\n  GetMem(p, 100); \/\/\n\u5206\u914d\u4e00\u5757\u5927\u5c0f\u4e3a100\u5b57\u8282\u7684\u5185\u5b58\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8be5\u5185\u5b58\u7684\u6307\u9488\uff0c\u8d4b\u503c\u7ed9\u53d8\u91cfp\n  try\n    pd := p; \/\/\n\u5c06\u6307\u9488p\u8d4b\u503c\u7ed9pd\uff0c\u6b64\u65f6pd\u4e5f\u6307\u5411\u540c\u4e00\u5757\u5185\u5b58\n    for var I := 0 to 25 do \/\/ \u4f7f\u7528for\u5faa\u73af\u4ece0\u523025\u8fdb\u884c\u8fed\u4ee3\n\nbegin\n      pd^ := 0; \/\/ \u5c06\u5f53\u524dpd\u6240\u6307\u5411\u7684\u5185\u5b58\u5355\u5143\u8bbe\u7f6e\u4e3a0\n      Inc(pd); \/\/ \u5c06pd\u6307\u5411\u4e0b\u4e00\u4e2a\u5185\u5b58\u5355\u5143\n\nend;\n  finally\n    FreeMem(p); \/\/ \u91ca\u653e\u5206\u914d\u7684\u5185\u5b58\uff0c\u65e0\u8bba\u4e4b\u524d\u662f\u5426\u53d1\u751f\u5f02\u5e38\u90fd\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\n\nend;\nend;\n```\n\n### \u4ee3\u7801\u89e3\u91ca\uff1a\n\n1. **\u5206\u914d\u5185\u5b58**\uff1a\n   ```delphi\n   GetMem(p, 100);\n\n```\n   \u8fd9\u884c\u4ee3\u7801\u8c03\u7528`GetMem`\u51fd\u6570\uff0c\u5206\u914d\u4e00\u5757\u5927\u5c0f\u4e3a100\u5b57\u8282\u7684\u5185\u5b58\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8fd9\u5757\u5185\u5b58\u7684\u6307\u9488\u3002\u8fd9\u4e2a\u6307\u9488\u88ab\u8d4b\u503c\u7ed9\u53d8\u91cf`p`\u3002\n\n2.\n**\u521d\u59cb\u5316\u5185\u5b58**\uff1a\n   ```delphi\n   pd := p;\n   for var I := 0 to 25 do\n   begin\n\npd^ := 0;\n     Inc(pd);\n   end;\n   ```\n\n\u8fd9\u91cc\uff0c\u9996\u5148\u5c06\u6307\u9488`p`\u8d4b\u503c\u7ed9`pd`\uff0c\u4f7f\u5f97\u5b83\u4eec\u6307\u5411\u540c\u4e00\u5757\u5185\u5b58\u3002\u7136\u540e\u4f7f\u7528\u4e00\u4e2a`for`\u5faa\u73af\u4ece0\u523025\u8fdb\u884c\u8fed\u4ee3\uff0c\u6bcf\u6b21\u8fed\u4ee3\u90fd\u5c06\u5f53\u524d`pd`\u6240\u6307\u5411\u7684\u5185\u5b58\u5355\u5143\u8bbe\u7f6e\u4e3a0\uff0c\u5e76\u5c06`pd`\u6307\u5411\u4e0b\u4e00\u4e2a\u5185\u5b58\u5355\u5143\u3002\n\n3.\n**\u91ca\u653e\u5185\u5b58**\uff1a\n   ```delphi\n   finally\n     FreeMem(p);\n   end;\n   ```\n\n\u65e0\u8bba\u5728\u5faa\u73af\u4e2d\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c\u6700\u540e\u90fd\u4f1a\u6267\u884c`FreeMem(p)`\u6765\u91ca\u653e\u4e4b\u524d\u5206\u914d\u7684\u5185\u5b58\u3002\n\n###\n\u603b\u7ed3\uff1a\n\u8fd9\u6bb5\u4ee3\u7801\u7684\u4e3b\u8981\u529f\u80fd\u662f\u5206\u914d\u4e00\u5757\u5927\u5c0f\u4e3a100\u5b57\u8282\u7684\u5185\u5b58\uff0c\u7136\u540e\u901a\u8fc7\u4e00\u4e2a\u5faa\u73af\u5c06\u8fd9\u5757\u5185\u5b58\u7684\u524d26\u4e2a\u6574\u6570\uff08\u6bcf\u4e2a4\u5b57\u8282\uff09\u521d\u59cb\u5316\u4e3a0\u3002\u6700\u540e\uff0c\u65e0\u8bba\u5faa\u73af\u8fc7\u7a0b\u4e2d\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c\u90fd\u4f1a\u786e\u4fdd\u91ca\u653e\u5206\u914d\u7684\u5185\u5b58\u3002\n*)\n<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u6211\u4eec\u4e0d\u9009\u4e2d\u4e2d\u6587\u8fd9\u884c\u6ce8\u91ca\uff0c \u5b83\u8fd4\u56de\u7684\u7ed3\u679c\u662f\uff1a<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(************* Explanation ***************\nThe code you've provided is a\nPascal procedure named `Test()`. This procedure uses dynamic memory allocation\nand manipulation in Pascal. Here's a step-by-step breakdown of what the code\ndoes:\n\n1. **Variable Declarations**:\n   ```pascal\n   var p, pd: PInteger;\n\n```\n   - `p` is declared as a pointer to an integer.\n   - `pd` is also\ndeclared as a pointer to an integer, but it will be used to iterate over the\nmemory block allocated for `p`.\n\n2. **Memory Allocation**:\n   ```pascal\n\nGetMem(p, 100);\n   ```\n   - This line allocates a block of memory with a size\nof 100 bytes and assigns the pointer to this block to `p`. The allocated memory\nis uninitialized and can be used to store integers.\n\n3. **Memory\nInitialization**:\n   ```pascal\n   try\n     pd := p;\n     for var I := 0 to\n25 do\n     begin\n       pd^ := 0;\n       Inc(pd);\n     end;\n   finally\n\nFreeMem(p);\n   end;\n   ```\n   - The `try` block is used to ensure that the\nallocated memory is properly freed in case an exception occurs during its use.\n\n- `pd := p;` initializes `pd` to point to the same memory location as `p`.\n   -\nThe `for` loop iterates 26 times (from 0 to 25), setting each integer value in\nthe allocated block to 0:\n     ```pascal\n     for var I := 0 to 25 do\n\nbegin\n       pd^ := 0;\n       Inc(pd);\n     end;\n     ```\n     - `pd^ :=\n0;` sets the current integer value at the address pointed to by `pd` to 0.\n\n- `Inc(pd);` increments the pointer `pd` to point to the next integer in the\nmemory block.\n   - The finally clause ensures that the allocated memory is\nfreed using `FreeMem(p);` even if an exception occurs during the execution of\nthe procedure.\n\n4. **Memory Deallocation**:\n   ```pascal\n   FreeMem(p);\n\n```\n   - This line frees the dynamically allocated memory block pointed to by\n`p`.\n\n### Summary\nThe `Test()` procedure allocates a block of memory for 100\nintegers, initializes the first 26 integers to zero, and then deallocates the\nmemory. The use of `try...finally` ensures that the memory is always freed, even\nif an error occurs during the initialization process.\n*)\n<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u662f\u63a5\u5165 DeepSeek API \u505a\u7684\u4ee3\u7801\u5b8c\u6210\u6d4b\u8bd5\u7684\u8fd4\u56de\u7ed3\u679c\uff0c\u5148\u4e2d\u524d\u9762\u7684\u6ce8\u91ca\uff0c\u7136\u540e\u53f3\u952e\u9009\u62e9 SmartInsight -&gt; Complete the Code\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u5f53\u524d\u754c\u9762\u4e0a Memo1 \u5b58\u7684\u662f\u4e00\u4e2a JSON \u5b57\u7b26\u4e32\uff0c\u5e2e\u6211\u5b8c\u6210\u89e3\u6790\u5e76\u83b7\u53d6\u5176\u4e2d\u540d\u4e3a url \u7684\u6210\u5458\u7684\u503c\uff0c\u7136\u540e\u5c06\u5176\u8d4b\u7ed9 Edit1.Text\n(************* Complete Code ***************\n\u8981\u5b8c\u6210\u8fd9\u4e2a\u4efb\u52a1\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Delphi \u7684\n`System.JSON` \u5355\u5143\u6765\u89e3\u6790 JSON \u5b57\u7b26\u4e32\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4ece `Memo1` \u4e2d\u83b7\u53d6 JSON \u5b57\u7b26\u4e32\uff0c\u89e3\u6790\u5b83\uff0c\u5e76\u63d0\u53d6\u540d\u4e3a\n`url` \u7684\u6210\u5458\u7684\u503c\uff0c\u7136\u540e\u5c06\u5176\u8d4b\u503c\u7ed9 `Edit1.Text`\u3002\n\n```delphi\nuses\n\nSystem.JSON;\n\nprocedure TForm1.Button1Click(Sender: TObject);\nvar\n\nJSONString: string;\n  JSONValue: TJSONValue;\n  JSONObject: TJSONObject;\n\nURLValue: string;\nbegin\n  \/\/ \u83b7\u53d6 Memo1 \u4e2d\u7684 JSON \u5b57\u7b26\u4e32\n  JSONString :=\nMemo1.Text;\n\n  try\n    \/\/ \u89e3\u6790 JSON \u5b57\u7b26\u4e32\n    JSONValue :=\nTJSONObject.ParseJSONValue(JSONString);\n    if JSONValue is TJSONObject then\n\nbegin\n      JSONObject := JSONValue as TJSONObject;\n\n      \/\/ \u83b7\u53d6\u540d\u4e3a \"url\"\n\u7684\u6210\u5458\u7684\u503c\n      if JSONObject.TryGetValue&lt;string&gt;('url', URLValue) then\n\nbegin\n        \/\/ \u5c06\u83b7\u53d6\u5230\u7684\u503c\u8d4b\u7ed9 Edit1.Text\n        Edit1.Text := URLValue;\n\nend\n      else\n      begin\n        ShowMessage('JSON \u4e2d\u672a\u627e\u5230 \"url\" \u6210\u5458');\n\nend;\n    end\n    else\n    begin\n      ShowMessage('JSON \u5b57\u7b26\u4e32\u683c\u5f0f\u4e0d\u6b63\u786e');\n\nend;\n  finally\n    \/\/ \u91ca\u653e JSONValue\n    JSONValue.Free;\n\nend;\nend;\n```\n\n### \u4ee3\u7801\u8bf4\u660e\uff1a\n1. **\u83b7\u53d6 JSON \u5b57\u7b26\u4e32**\uff1a\u4ece `Memo1` \u4e2d\u83b7\u53d6 JSON \u5b57\u7b26\u4e32\u3002\n2.\n**\u89e3\u6790 JSON \u5b57\u7b26\u4e32**\uff1a\u4f7f\u7528 `TJSONObject.ParseJSONValue` \u65b9\u6cd5\u89e3\u6790 JSON \u5b57\u7b26\u4e32\u3002\n3. **\u68c0\u67e5 JSON\n\u7c7b\u578b**\uff1a\u786e\u4fdd\u89e3\u6790\u540e\u7684 JSON \u662f\u4e00\u4e2a\u5bf9\u8c61\uff08`TJSONObject`\uff09\u3002\n4. **\u83b7\u53d6 `url` \u6210\u5458\u7684\u503c**\uff1a\u4f7f\u7528 `TryGetValue`\n\u65b9\u6cd5\u5c1d\u8bd5\u83b7\u53d6\u540d\u4e3a `url` \u7684\u6210\u5458\u7684\u503c\u3002\n5. **\u8d4b\u503c\u7ed9 `Edit1.Text`**\uff1a\u5982\u679c\u6210\u529f\u83b7\u53d6\u5230 `url` \u7684\u503c\uff0c\u5c06\u5176\u8d4b\u503c\u7ed9\n`Edit1.Text`\u3002\n6. **\u9519\u8bef\u5904\u7406**\uff1a\u5982\u679c JSON \u683c\u5f0f\u4e0d\u6b63\u786e\u6216\u672a\u627e\u5230 `url` \u6210\u5458\uff0c\u663e\u793a\u76f8\u5e94\u7684\u9519\u8bef\u6d88\u606f\u3002\n7.\n**\u91ca\u653e\u8d44\u6e90**\uff1a\u6700\u540e\u91ca\u653e `JSONValue` \u5bf9\u8c61\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u3002\n\n### \u6ce8\u610f\u4e8b\u9879\uff1a\n- \u786e\u4fdd `System.JSON` \u5355\u5143\u5df2\u7ecf\u88ab\u6dfb\u52a0\u5230\n`uses` \u5b50\u53e5\u4e2d\u3002\n- \u5982\u679c JSON \u5b57\u7b26\u4e32\u683c\u5f0f\u4e0d\u6b63\u786e\u6216 `url` \u6210\u5458\u4e0d\u5b58\u5728\uff0c\u4ee3\u7801\u4f1a\u663e\u793a\u76f8\u5e94\u7684\u9519\u8bef\u6d88\u606f\u3002\n- \u8fd9\u4e2a\u4ee3\u7801\u5047\u8bbe `Button1`\n\u662f\u4e00\u4e2a\u6309\u94ae\uff0c\u70b9\u51fb\u6309\u94ae\u65f6\u6267\u884c\u89e3\u6790\u64cd\u4f5c\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u89e6\u53d1\u4e8b\u4ef6\u3002\n\n\u5e0c\u671b\u8fd9\u4e2a\u4ee3\u7801\u5bf9\u4f60\u6709\u5e2e\u52a9\uff01\n*)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Delphi 12.2 \u5f00\u59cb\u5f15\u5165\u4e86 Sm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-6009","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":2556,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/6009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6009"}],"version-history":[{"count":4,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/6009\/revisions"}],"predecessor-version":[{"id":6018,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/6009\/revisions\/6018"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}