{"id":3939,"date":"2024-01-26T08:55:55","date_gmt":"2024-01-26T00:55:55","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=3939"},"modified":"2023-12-03T09:18:18","modified_gmt":"2023-12-03T01:18:18","slug":"%e5%bf%ab%e9%80%9f%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3939","title":{"rendered":"\u5feb\u901f\u64cd\u4f5c"},"content":{"rendered":"\n<p>\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Lightning Web \u7ec4\u4ef6\u4ec5\u652f\u6301\u4f5c\u4e3a Lightning Experience \u4e2d\u7684\u5feb\u901f\u64cd\u4f5c\u3002Salesforce \u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u4e0d\u652f\u6301\u4f7f\u7528 Lightning Web \u7ec4\u4ef6\u4f5c\u4e3a\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-a-component-for-quick-actions\">\u914d\u7f6e\u7ec4\u4ef6\u4ee5\u6267\u884c\u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u8981\u4f7f\u7528 Lightning Web \u7ec4\u4ef6\u4f5c\u4e3a\u5feb\u901f\u64cd\u4f5c\uff0c\u8bf7\u5b9a\u4e49\u7ec4\u4ef6\u7684\u5143\u6570\u636e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u548c\u65e0\u5934\u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>LWC \u5feb\u901f\u64cd\u4f5c\u6709\u4e24\u79cd\u7c7b\u578b\uff1a<em>\u5c4f\u5e55<\/em>\u5feb\u901f\u64cd\u4f5c\u548c<em>\u65e0\u5934\u5feb\u901f\u64cd\u4f5c<\/em>\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u7ec4\u4ef6\u3002\u8bf7\u53c2\u9605\u521b\u5efa\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li>\u65e0\u5916\u8bbe\u5feb\u901f\u64cd\u4f5c\u6267\u884c\u60a8\u5728\u65b9\u6cd5\u4e2d\u63d0\u4f9b\u7684\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u8bf7\u53c2\u9605\u521b\u5efa Headless \u5feb\u901f\u64cd\u4f5c\u3002<code>@api invoke()<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u60a8\u53ea\u80fd\u5c06 Lightning Web \u7ec4\u4ef6\u7528\u4f5c\u8bb0\u5f55\u9875\u9762\u4e0a\u7684\u5feb\u901f\u64cd\u4f5c\u3002\u60a8\u4e0d\u80fd\u5c06 Lightning Web \u7ec4\u4ef6\u7528\u4f5c\u5168\u5c40\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7ec4\u4ef6\u5143\u6570\u636e<\/h2>\n\n\n\n<p>\u7ec4\u4ef6\u7684\u9879\u76ee\u6587\u4ef6\u5939\u5fc5\u987b\u5305\u542b\u5b9a\u4e49\u7ec4\u4ef6\u5143\u6570\u636e\u503c\u7684&nbsp;<code>componentName.js-meta.xml<\/code>&nbsp;\u914d\u7f6e\u6587\u4ef6\u3002\u82e5\u8981\u5c06\u7ec4\u4ef6\u7528\u4f5c\u5feb\u901f\u64cd\u4f5c\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728 \u4e2d\uff0c\u6dfb\u52a0\u4e3a a \u4ee5\u5c06 Lightning Web \u7ec4\u4ef6\u6307\u5b9a\u4e3a\u8bb0\u5f55\u9875\u9762\u4e0a\u7684\u5feb\u901f\u64cd\u4f5c\u3002<code>targets<\/code><code>lightning__RecordAction<\/code><code>target<\/code><\/li>\n\n\n\n<li>\u6dfb\u52a0 \u5e76\u8bbe\u7f6e\u4e3a \u3002<code>targetConfig<\/code><code>targets<\/code><code>lightning__RecordAction<\/code><\/li>\n\n\n\n<li>\u8bbe\u7f6e\u4e3a \u6216 \u9009\u62e9\u5feb\u901f\u64cd\u4f5c\u7c7b\u578b\u3002\u5982\u679c\u672a\u6307\u5b9a \uff0c\u5219\u5feb\u901f\u64cd\u4f5c\u9ed8\u8ba4\u4e3a\u5c4f\u5e55\u64cd\u4f5c\u3002<code>actionType<\/code><code>ScreenAction<\/code><code>Action<\/code><code>actionType<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u6b64\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u5c4f\u5e55\u64cd\u4f5c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;52.0&lt;\/apiVersion&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n  &lt;targets&gt;\n    &lt;target&gt;lightning__RecordAction&lt;\/target&gt;\n  &lt;\/targets&gt;\n  &lt;targetConfigs&gt;\n    &lt;targetConfig targets=\"lightning__RecordAction\"&gt;\n      &lt;actionType&gt;ScreenAction&lt;\/actionType&gt;\n    &lt;\/targetConfig&gt;\n  &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u4e86\u65e0\u5934\u64cd\u4f5c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;52.0&lt;\/apiVersion&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n  &lt;targets&gt;\n    &lt;target&gt;lightning__RecordAction&lt;\/target&gt;\n  &lt;\/targets&gt;\n  &lt;targetConfigs&gt;\n    &lt;targetConfig targets=\"lightning__RecordAction\"&gt;\n      &lt;actionType&gt;Action&lt;\/actionType&gt;\n    &lt;\/targetConfig&gt;\n  &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u8bf7\u53c2\u9605&nbsp;XML \u914d\u7f6e\u6587\u4ef6\u5143\u7d20\u7684\u5b8c\u6574\u5217\u8868\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728 Salesforce \u8bbe\u7f6e\u4e2d\u521b\u5efa\u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u5728 Salesforce \u8bbe\u7f6e\u4e2d\uff0c\u901a\u8fc7\u201c\u5bf9\u8c61\u7ba1\u7406\u5668\u201d\u9875\u9762\u521b\u5efa\u7279\u5b9a\u4e8e\u5bf9\u8c61\u7684\u64cd\u4f5c\u3002\u7136\u540e\u5c06\u8be5\u64cd\u4f5c\u6dfb\u52a0\u5230\u9875\u9762\u5e03\u5c40\u7684&nbsp;<strong>Salesforce Mobile \u548c Lightning Experience \u64cd\u4f5c<\/strong>\u90e8\u5206\u3002\u8bf7\u53c2\u9605 Salesforce \u5e2e\u52a9\u4e2d\u7684\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Salesforce \u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u4e0d\u652f\u6301\u4f7f\u7528 Lightning Web \u7ec4\u4ef6\u4f5c\u4e3a\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-screen-quick-actions\">\u521b\u5efa\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u5c06\u663e\u793a\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u3002\u63d0\u4f9b\u60a8\u81ea\u5df1\u7684\u6807\u8bb0\u6216\u4f7f\u7528\u8be5\u7ec4\u4ef6\uff0c\u4ee5\u5b9e\u73b0\u57fa\u4e8e Lightning Design System \u7684\u4e00\u81f4\u7528\u6237\u754c\u9762\u3002<code>lightning-quick-action-panel<\/code><\/p>\n\n\n\n<p>\u8981\u4f7f\u7ec4\u4ef6\u7528\u4f5c\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\uff0c\u8bf7\u914d\u7f6e\u76ee\u6807\u3002\u8bf7\u53c2\u9605\u914d\u7f6e\u7ec4\u4ef6\u4ee5\u6267\u884c\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u4e0e\u8bb0\u5f55\u9875\u9762\u4e0a\u7684\u5176\u4ed6 Lightning Web \u7ec4\u4ef6\u4e0d\u540c\uff0cLWC \u5feb\u901f\u64cd\u4f5c\u4e0d\u4f1a\u4f20\u5165 .\u5982\u679c\u9700\u8981\u8bbf\u95ee \uff0c\u8bf7\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e \u7684\u503c\u3002<code>recordIdconnectedCallback()recordIdrecordId<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>_recordId;\nset recordId(recordId) {\n    if (recordId !== this._recordId) {\n        this._recordId = recordId;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6253\u5f00\u548c\u5173\u95ed\u6a21\u5f0f\u7a97\u53e3<\/h2>\n\n\n\n<p>\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u53ef\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u6253\u5f00 Lightning Web \u7ec4\u4ef6\u3002\u8981\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u5173\u95ed\u6a21\u5f0f\u7a97\u53e3\uff0c\u4f8b\u5982\uff0c\u8981\u521b\u5efa<strong>\u201c\u53d6\u6d88<\/strong>\u201d\u6309\u94ae\uff0c\u8bf7\u751f\u6210\u8c03\u5ea6\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7684 UI\u3002\u4ece\u6a21\u5757\u5bfc\u5165\u4e8b\u4ef6\u3002<code>CloseActionScreenEvent<\/code><code>lightning\/actions<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { CloseActionScreenEvent } from \"lightning\/actions\";<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u5404\u8282\u5305\u542b\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u6784\u5efa\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\uff0c\u5219\u6309&nbsp;<strong>X<\/strong>&nbsp;\u4ec5\u5173\u95ed\u6a21\u5f0f\uff0c\u5219\u6ca1\u6709\u6302\u94a9\u5728\u5173\u95ed\u65f6\u6267\u884c\u5176\u4ed6\u903b\u8f91\u3002\u5982\u679c\u5c4f\u5e55\u5feb\u901f\u64cd\u4f5c\u5177\u6709\u5728<strong>\u201c\u53d6\u6d88<\/strong>\u201d\u65f6\u6267\u884c\u7684\u903b\u8f91\uff0c\u5219\u5728\u9762\u677f\u5173\u95ed\u65f6\u5c06\u7ed5\u8fc7\u8be5\u903b\u8f91\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528 lightning-quick-action-panel \u5b9e\u73b0\u4e00\u81f4\u7684 UI<\/h2>\n\n\n\n<p>\u8981\u63d0\u4f9b\u4e00\u81f4\u7684 Salesforce UI\uff0c\u8bf7\u5c06 Lightning Web \u7ec4\u4ef6\u5305\u88c5\u5728&nbsp;lightning-quick-action-panel&nbsp;\u7ec4\u4ef6\u4e2d\uff0c\u8be5\u7ec4\u4ef6\u63d0\u4f9b\u4e0e Salesforce Lightning Design System \u4e2d\u7684\u6a21\u5f0f\u84dd\u56fe\u4e00\u81f4\u7684\u9875\u7709\u3001\u6b63\u6587\u548c\u9875\u811a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;lightning-quick-action-panel header=\"My action\"&gt;\n    Here's some content for the modal body.\n\n    &lt;div slot=\"footer\"&gt;\n      &lt;lightning-button variant=\"neutral\" label=\"Cancel\"&gt;&lt;\/lightning-button&gt;\n      &lt;lightning-button variant=\"brand\" label=\"Save\" class=\"slds-m-left_x-small\"&gt;&lt;\/lightning-button&gt;\n    &lt;\/div&gt;\n  &lt;\/lightning-quick-action-panel&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u6a21\u6001\u4e3b\u4f53\u4e2d\u521b\u5efa\u8868\u5355<\/h2>\n\n\n\n<p>\u521b\u5efa\u6a21\u6001\u4e3b\u4f53\u7684\u4e00\u79cd\u65b9\u6cd5\u662f\u5c06\u7ec4\u4ef6\u4e0e\u7531\u7ec4\u4ef6\u586b\u5145\u7684\u5b57\u6bb5\u503c\u4e00\u8d77\u4f7f\u7528\u3002\u53d6\u6d88\u548c\u63d0\u4ea4\u6309\u94ae\u5fc5\u987b\u5d4c\u5957\u5728\u7ec4\u4ef6\u4e2d\uff0c\u56e0\u6b64\u4f7f\u7528\u6b64\u65b9\u6cd5\u65f6\u4e0d\u9700\u8981\u9875\u811a\u69fd\u3002<code>lightning-record-edit-form<\/code><code>lightning-input-field<\/code><code>lightning-record-edit-form<\/code><\/p>\n\n\n\n<p>\u672c\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u7a97\u4f53\uff0c\u7528\u4e8e\u586b\u5145\u4e0d\u5e26\u9875\u811a\u7684 name \u548c phone \u5b57\u6bb5\u3002\u5b83\u5448\u73b0\u4e00\u4e2a\u6a21\u6001\u7a97\u53e3\uff0c\u5176\u6807\u9898\u5305\u542b\u6587\u672c<strong>\u201c\u7f16\u8f91\u5b57\u6bb5\u64cd\u4f5c<\/strong>\u201d\u3002<code>lightning-record-edit-form<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;lightning-quick-action-panel header=\"Edit Fields Action\"&gt;\n    &lt;lightning-record-edit-form\n      record-id={recordId}\n      object-api-name={objectApiName}\n      onsuccess={handleSuccess}&gt;\n      &lt;lightning-input-field field-name=\"Name\"&gt;&lt;\/lightning-input-field&gt;\n      &lt;lightning-input-field field-name=\"Phone\"&gt;&lt;\/lightning-input-field&gt;\n      &lt;lightning-button variant=\"neutral\" label=\"Cancel\"&gt;&lt;\/lightning-button&gt;\n      &lt;lightning-button variant=\"brand\" class=\"slds-m-left_x-small\" label=\"Save\" type=\"submit\"&gt;\n      &lt;\/lightning-button&gt;\n    &lt;\/lightning-record-edit-form&gt;\n  &lt;\/lightning-quick-action-panel&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u5f53\u7528\u6237\u5355\u51fb\u63d0\u4ea4\u6309\u94ae\u65f6\uff0c\u5c06\u8c03\u7528\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u3002\u5904\u7406\u7a0b\u5e8f\u4f7f\u7528\u8be5\u51fd\u6570\u5173\u95ed\u6a21\u5f0f\u7a97\u53e3\u3002<code>handleSuccess<\/code><code>CloseActionScreenEvent<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\nimport { ShowToastEvent } from \"lightning\/platformShowToastEvent\";\nimport { CloseActionScreenEvent } from \"lightning\/actions\";\n\nexport default class QuickEditFormExample extends LightningElement {\n  @api recordId;\n  @api objectApiName;\n\n  handleSuccess(e) {\n    \/\/ Close the modal window and display a success toast\n    this.dispatchEvent(new CloseActionScreenEvent());\n    this.dispatchEvent(\n      new ShowToastEvent({\n        title: \"Success\",\n        message: \"Record updated!\",\n        variant: \"success\",\n      }),\n    );\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u9875\u811a\u4e2d\u521b\u5efa\u5e26\u6709\u6309\u94ae\u7684\u81ea\u5b9a\u4e49\u7a97\u4f53<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528 \u548c \u7ec4\u4ef6\u5728\u6a21\u6001\u4e3b\u4f53\u4e2d\u521b\u5efa\u8868\u5355\u3002\u4f7f\u7528\u6b64\u65b9\u6cd5\u65f6\uff0c\u8bf7\u4f7f\u7528\u7ec4\u4ef6\u7684\u9875\u811a\u69fd\u6765\u5305\u542b\u6309\u94ae\u3002<code>lightning-input<\/code><code>lightning-button<\/code><code>lightning-quick-action-panel<\/code><\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u7a97\u4f53\uff0c\u7528\u4e8e\u5bf9\u8054\u7cfb\u4eba\u8bb0\u5f55\u6267\u884c\u4e0e\u4e0a\u4e00\u793a\u4f8b\u7c7b\u4f3c\u7684\u5feb\u901f\u64cd\u4f5c\uff0c\u5e76\u5728\u9875\u811a\u4e2d\u4f7f\u7528\u6309\u94ae\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f7f\u7528\u8bb0\u5f55\u7a97\u4f53\u7ec4\u4ef6\u3002\u8be5\u5b57\u6bb5\u663e\u793a\u4f7f\u7528\u7535\u7ebf\u9002\u914d\u5668\u7684\u521d\u59cb\u503c\u3002<code>getRecord<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;lightning-quick-action-panel header=\"Quick Contact Edit\"&gt;\n  &lt;template lwc:if={contact.data}&gt;\n    &lt;lightning-input\n      label=\"First Name\"\n      value={firstname}\n      class=\"slds-m-bottom_x-small\"&gt;\n    &lt;\/lightning-input&gt;\n    &lt;lightning-input\n      label=\"Last Name\"\n      value={lastname}\n      onchange={handleLastNameChange}\n      class=\"slds-m-bottom_x-small\"\n      required&gt;\n    &lt;\/lightning-input&gt;\n    &lt;lightning-input\n      label=\"Phone\"\n      type=\"tel\"\n      value={phone}\n      class=\"slds-m-bottom_x-small\"&gt;\n    &lt;\/lightning-input&gt;\n  &lt;\/template&gt;\n  &lt;div slot=\"footer\"&gt;\n    &lt;lightning-button variant=\"neutral\" label=\"Cancel\" onclick={handleCancel}&gt;&lt;\/lightning-button&gt;\n    &lt;lightning-button\n      variant=\"brand\"\n      class=\"slds-m-left_x-small\"\n      label=\"Save\"\n      type=\"submit\"\n      onclick={handleSubmit}\n      disabled={disabled}&gt;\n    &lt;\/lightning-button&gt;\n  &lt;\/div&gt;\n&lt;\/lightning-quick-action-panel&gt;<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u201c\u59d3\u6c0f\u201d\u5b57\u6bb5\u4e3a\u7a7a\uff0c\u5219\u201c<strong>\u4fdd\u5b58<\/strong>\u201d\u6309\u94ae\u5c06\u88ab\u7981\u7528\u3002\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u5c06\u5173\u95ed\u6a21\u5f0f\u7a97\u53e3\uff0c\u5982\u679c<strong>\u4fdd\u5b58<\/strong>\u6210\u529f\uff0c\u5219\u663e\u793a Toast\u3002\u82e5\u8981\u4fdd\u5b58\u8bb0\u5f55\u66f4\u6539\uff0c\u8bf7\u8c03\u7528&nbsp;updateRecord\uff08recordInput\uff0c clientOptions\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api, wire } from \"lwc\";\nimport { getRecord, getFieldValue } from \"lightning\/uiRecordApi\";\nimport { updateRecord } from \"lightning\/uiRecordApi\";\nimport { CloseActionScreenEvent } from \"lightning\/actions\";\nimport { ShowToastEvent } from \"lightning\/platformShowToastEvent\";\nimport FNAME_FIELD from \"@salesforce\/schema\/Contact.FirstName\";\nimport LNAME_FIELD from \"@salesforce\/schema\/Contact.LastName\";\nimport PHONE_FIELD from \"@salesforce\/schema\/Contact.Phone\";\n\nconst FIELDS = &#91;FNAME_FIELD, LNAME_FIELD, PHONE_FIELD];\n\nexport default class QuickEditExample extends LightningElement {\n  disabled = false;\n  @api recordId;\n  @api objectApiName;\n\n  @wire(getRecord, { recordId: \"$recordId\", fields: FIELDS })\n  contact;\n\n  get firstname() {\n    return getFieldValue(this.contact.data, FNAME_FIELD);\n  }\n\n  get lastname() {\n    return getFieldValue(this.contact.data, LNAME_FIELD);\n  }\n\n  get phone() {\n    return getFieldValue(this.contact.data, PHONE_FIELD);\n  }\n\n  handleCancel(event) {\n    \/\/ Add your cancel button implementation here\n    this.dispatchEvent(new CloseActionScreenEvent());\n  }\n\n  handleLastNameChange(event) {\n    \/\/ Display field-level errors if last name field is empty.\n    if (!event.target.value) {\n      event.target.reportValidity();\n      this.disabled = true;\n    } else {\n      this.disabled = false;\n    }\n  }\n\n  handleSubmit(e) {\n    \/\/ Add your updateRecord implementation\n\n    \/\/ Close the modal window and display a success toast\n    this.dispatchEvent(new CloseActionScreenEvent());\n    this.dispatchEvent(\n      new ShowToastEvent({\n        title: \"Success\",\n        message: \"Record updated!\",\n        variant: \"success\",\n      }),\n    );\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u83b7\u53d6\u6709\u5173\u4e3b\u9875\u7684\u4fe1\u606f<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u6807\u51c6 LWC \u529f\u80fd\u83b7\u53d6\u6709\u5173\u5f53\u524d\u9875\u9762\u7684\u4fe1\u606f\uff0c\u5305\u62ec\u6765\u81ea\u5bfc\u822a\u670d\u52a1\u7684\u9875\u9762\u5f15\u7528\u3001\u8bb0\u5f55 ID \u548c\u5f53\u524d\u8bb0\u5f55\u7684\u5bf9\u8c61 API \u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u8981\u8fd4\u56de\u9875\u9762\u5f15\u7528\uff0c\u8bf7\u4ece&nbsp;lightning\/navigation&nbsp;\u5bfc\u5165\u3002\u8bf7\u53c2\u9605\u5bfc\u822a\u5230\u9875\u9762\u3001\u8bb0\u5f55\u548c\u5217\u8868\u3002<code>CurrentPageReference<\/code><\/p>\n\n\n\n<p>\u82e5\u8981\u83b7\u53d6\u8bb0\u5f55 ID \u548c\u5bf9\u8c61 API \u540d\u79f0\uff0c\u8bf7\u516c\u5f00 and \u4f5c\u4e3a\u5c5e\u6027\u3002\u8bf7\u53c2\u9605\u4f7f\u7ec4\u4ef6\u4e86\u89e3\u5176\u8bb0\u5f55\u4e0a\u4e0b\u6587\u548c\u4f7f\u7ec4\u4ef6\u4e86\u89e3\u5176\u5bf9\u8c61\u4e0a\u4e0b\u6587\u3002recordIdobjectApiName<\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u663e\u793a\u5f53\u524d\u8bb0\u5f55\u7684\u8bb0\u5f55 ID \u548c\u5bf9\u8c61 API \u540d\u79f0\u3002\u5b83\u8fd8\u8fd4\u56de\u5f53\u524d\u9875\u9762\u5f15\u7528\uff0c\u8be5\u5f15\u7528\u63cf\u8ff0\u5f53\u524d\u9875\u9762\u53ca\u5176\u72b6\u6001\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>&lt;template&gt;\n  &lt;p&gt;These two fields are auto-populated based on the record context:&lt;\/p&gt;\n  &lt;p&gt;RecordId: &lt;i&gt;{recordId}&lt;\/i&gt;, objectApiName: &lt;i&gt;{objectApiName}&lt;\/i&gt;&lt;\/p&gt;\n  &lt;p&gt;{pageRefString}&lt;\/p&gt;\n&lt;\/template&gt;<\/code><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><code>import { LightningElement, api, wire } from \"lwc\";\nimport { CurrentPageReference } from \"lightning\/navigation\";\n\nexport default class RecordContextAction extends LightningElement {\n  @api recordId;\n  @api objectApiName;\n\n  @wire(CurrentPageReference)\n  pageRef;\n\n  get pageRefString() {\n    return JSON.stringify(this.pageRef);\n  }\n}<\/code><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-headless-quick-actions\">\u521b\u5efa Headless \u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u65e0\u5934\u5feb\u901f\u64cd\u4f5c\u5728 Lightning Web \u7ec4\u4ef6\u4e2d\u6267\u884c\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4e0e\u5c4f\u5e55\u64cd\u4f5c\u4e0d\u540c\uff0c\u65e0\u5934\u64cd\u4f5c\u4e0d\u4f1a\u6253\u5f00\u6a21\u5f0f\u7a97\u53e3\u3002<\/p>\n\n\n\n<p>\u8981\u4f7f\u60a8\u7684\u7ec4\u4ef6\u7528\u4f5c\u65e0\u5916\u8bbe\u5feb\u901f\u64cd\u4f5c\uff0c\u8bf7\u914d\u7f6e\u76ee\u6807\u3002\u8bf7\u53c2\u9605\u914d\u7f6e\u7ec4\u4ef6\u4ee5\u6267\u884c\u5feb\u901f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u4e0e\u8bb0\u5f55\u9875\u9762\u4e0a\u7684\u5176\u4ed6 Lightning Web \u7ec4\u4ef6\u4e0d\u540c\uff0cLWC \u5feb\u901f\u64cd\u4f5c\u4e0d\u4f1a\u4f20\u5165 .\u5982\u679c\u9700\u8981\u8bbf\u95ee \uff0c\u8bf7\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e \u7684\u503c\u3002<code>recordIdconnectedCallback()recordIdrecordId<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>_recordId;\nset recordId(recordId) {\n    if (recordId !== this._recordId) {\n        this._recordId = recordId;<\/code><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u73b0 invoke\uff08\uff09<\/h2>\n\n\n\n<p>\u5728\u60a8\u7684 Lightning Web \u7ec4\u4ef6\u4e2d\uff0c\u59cb\u7ec8\u516c\u5f00\u4e3a\u65e0\u5934\u5feb\u901f\u64cd\u4f5c\u7684\u516c\u5171\u65b9\u6cd5\u3002\u6bcf\u6b21\u89e6\u53d1\u5feb\u901f\u64cd\u4f5c\u65f6\uff0c\u90fd\u4f1a\u6267\u884c\u8be5\u65b9\u6cd5\u3002<code>invoke()<\/code><code>invoke()<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\n\nexport default class HeadlessSimple extends LightningElement {\n  @api invoke() {\n    console.log(\"Hi, I'm an action.\");\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u4e3a\u60a8\u7684 Lightning Web \u7ec4\u4ef6\u521b\u5efa\u4e00\u4e2a\u7a7a\u6a21\u677f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt; &lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u82e5\u8981\u9632\u6b62\u5728\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u64cd\u4f5c\u4e2d\u591a\u6b21\u5e76\u884c\u6267\u884c\u5feb\u901f\u64cd\u4f5c\uff0c\u8bf7\u6dfb\u52a0\u5185\u90e8\u5e03\u5c14\u6807\u5fd7\u3002<\/p>\n\n\n\n<p>\u7684\u8fd4\u56de\u7c7b\u578b\u4e3a \u3002\u8fd4\u56de a \u4f1a\u4f7f\u65b9\u6cd5\u5f02\u6b65\uff0c\u4f46\u8fd4\u56de\u7684\u65b9\u6cd5\u5c06\u88ab\u5ffd\u7565\u3002<code>invoke()<\/code><code>void<\/code><code>Promise<\/code><code>Promise<\/code><\/p>\n\n\n\n<p>\u6b64\u4ee3\u7801\u4f7f\u7528\u5e03\u5c14\u6807\u5fd7\u6765\u963b\u6b62\u53cc\u91cd\u6267\u884c\uff0c\u5e76\u4f7f\u7528 a \u6765\u7b49\u5f85\u5b8c\u6210\u3002\u5373\u4f7f\u8fd4\u56de\u7c7b\u578b\u4e3a \uff0c\u4ee3\u7801\u4e5f\u4f1a\u5f02\u6b65\u6267\u884c\u3002<code>Promise<\/code><code>sleep<\/code><code>void<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\n\nexport default class HeadlessAsync extends LightningElement {\n  isExecuting = false;\n\n  @api async invoke() {\n    if (this.isExecuting) {\n      return;\n    }\n\n    this.isExecuting = true;\n    await this.sleep(2000);\n    this.isExecuting = false;\n  }\n\n  sleep(ms) {\n    return new Promise((resolve) =&gt; setTimeout(resolve, ms));\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5bfc\u822a<\/h2>\n\n\n\n<p>\u8981\u5bfc\u822a\u5230 Lightning Experience \u4e2d\u7684\u5176\u4ed6\u9875\u9762\u3001\u8bb0\u5f55\u6216\u5217\u8868\uff0c\u8bf7\u4f7f\u7528\u5bfc\u822a\u670d\u52a1\u3002<\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u5bfc\u822a\u5230\u8054\u7cfb\u4eba\u4e3b\u9875\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\nimport { NavigationMixin } from \"lightning\/navigation\";\n\nexport default class navigateToRecordAction extends NavigationMixin(LightningElement) {\n  @api invoke() {\n    this&#91;NavigationMixin.Navigate]({\n      type: \"standard__objectPage\",\n      attributes: {\n        objectApiName: \"Contact\",\n        actionName: \"home\",\n      },\n    });\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u8bf7\u53c2\u9605\u5bfc\u822a\u5230\u9875\u9762\u3001\u8bb0\u5f55\u548c\u5217\u8868\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8c03\u5ea6\u4e8b\u4ef6<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u5feb\u901f\u64cd\u4f5c\u8c03\u5ea6\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002\u6b64\u793a\u4f8b\u4f7f\u7528\u6a21\u5757\u63d0\u4f9b\u7684\u4e8b\u4ef6\u6309\u987a\u5e8f\u8c03\u5ea6\u4e24\u4e2a Toast\u3002<code>lightning\/platformShowToastEvent<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\nimport { ShowToastEvent } from \"lightning\/platformShowToastEvent\";\n\nexport default class DispatchEventAction extends LightningElement {\n  @api async invoke() {\n    let event = new ShowToastEvent({\n      title: \"I am a headless action!\",\n      message: \"Hi there! Starting...\",\n    });\n    this.dispatchEvent(event);\n\n    await this.sleep(2000);\n\n    event = new ShowToastEvent({\n      title: \"I am a headless action!\",\n      message: \"All done!\",\n    });\n    this.dispatchEvent(event);\n  }\n\n  sleep(ms) {\n    \/\/ eslint-disable-next-line @lwc\/lwc\/no-async-operation\n    return new Promise((resolve) =&gt; setTimeout(resolve, ms));\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u8bf7\u53c2\u9605&nbsp;Toast \u901a\u77e5\u548c\u4e0e\u4e8b\u4ef6\u901a\u4fe1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-an-email-as-a-quick-action\">\u5c06\u7535\u5b50\u90ae\u4ef6\u521b\u5efa\u4e3a\u5feb\u901f\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u4ece\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e2d\u7684\u6309\u94ae\u542f\u52a8\u5305\u542b\u9884\u586b\u5145\u5185\u5bb9\u7684\u7535\u5b50\u90ae\u4ef6\u7f16\u8f91\u5668\u3002\u4f7f\u7528 \u548c \u7ec4\u4ef6\u521b\u5efa QuickAction \uff08Global\uff09 Send Email \u64cd\u4f5c\uff0c\u8be5\u64cd\u4f5c\u5c06\u6253\u5f00\u5305\u542b\u9884\u586b\u5145\u5b57\u6bb5\u503c\u7684\u7535\u5b50\u90ae\u4ef6\u8349\u7a3f\u3002<code>lightning-navigation<\/code><code>lightning-page-reference-utils<\/code><\/p>\n\n\n\n<p>\u5728\u7ec4\u4ef6\u7684 HTML \u6587\u4ef6\u4e2d\uff0c\u4f7f\u7528 \u5b9a\u4e49\u5bfc\u822a\u670d\u52a1\uff0c\u4f7f\u7528 \u5b9a\u4e49\u9875\u9762\u5f15\u7528\u5b9e\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528 \u5b9a\u4e49\u64cd\u4f5c\u6309\u94ae\u3002<code>lightning-navigation<\/code><code>lightning-page-reference-utils<\/code><code>lightning-button<\/code><\/p>\n\n\n\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u8be5\u51fd\u6570\u5728\u5355\u51fb\u65f6\u89e6\u53d1\uff0c\u5e76\u4f7f\u7528\u4e3b\u9898\u548c\u6b63\u6587\u6587\u672c\u9884\u586b\u5145\u7535\u5b50\u90ae\u4ef6\u7f16\u8f91\u5668\u3002<code>handleClick<\/code><\/p>\n\n\n\n<p>\u8981\u5728\u7535\u5b50\u90ae\u4ef6\u7f16\u8f91\u5668\u4e2d\u5305\u542b\u9ed8\u8ba4\u6587\u672c\uff0c\u8bf7\u4f7f\u7528\u8be5\u51fd\u6570\u3002\u5c06\u7ed3\u679c\u6dfb\u52a0\u5230\u4f20\u9012\u5230\u6709\u6548\u8d1f\u8f7d\u7684\u9875\u9762\u5f15\u7528\u4e2d\u7684\u5c5e\u6027\u4e2d\u3002\u82e5\u8981\u4f7f\u7528\u7ec4\u4ef6\u7684\u8f93\u5165\u586b\u5145\u7535\u5b50\u90ae\u4ef6\uff0c\u8bf7\u5c06\u5b57\u6bb5\u503c\u4f20\u9012\u5230\u51fd\u6570\u4e2d\u3002<code>encodeDefaultFieldValues<\/code><code>defaultFieldValues<\/code><code>fieldOverride<\/code><code>encodeDefaultFieldValues<\/code><\/p>\n\n\n\n<p>\u786e\u4fdd\u60a8\u5728\u51fd\u6570\u4e2d\u6307\u5b9a\u7684\u5b57\u6bb5\u5728\u201c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u201d\u5168\u5c40\u64cd\u4f5c\u7684\u5e03\u5c40\u4e2d\u4e0d\u662f\u53ea\u8bfb\u7684\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u5982\u679c\u201cHTML \u6b63\u6587\u201d\u548c\u201c\u4e3b\u9898\u201d\u5b57\u6bb5\u4e3a\u53ea\u8bfb\uff0c\u5219\u7535\u5b50\u90ae\u4ef6\u8349\u7a3f\u4e0d\u5305\u542b\u8fd9\u4e9b\u5b57\u6bb5\u7684\u9884\u586b\u5145\u6587\u672c\u3002<code>encodeDefaultFieldValues<\/code><\/p>\n\n\n\n<p>\u5728 HTML \u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u89e6\u53d1\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u7684\u6309\u94ae\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div&gt;\n  &lt;lightning-button\n    variant=\"neutral\"\n    label=\"Send an Email\"\n    onclick={handleClick}&gt;\n  &lt;\/lightning-button&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u6dfb\u52a0\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement } from \"lwc\";\nimport { NavigationMixin } from \"lightning\/navigation\";\nimport { encodeDefaultFieldValues } from \"lightning\/pageReferenceUtils\";\n\nexport default class EmailQuickAction2 extends NavigationMixin(LightningElement) {\n  handleClick() {\n    var pageRef = {\n      type: \"standard__quickAction\",\n      attributes: {\n        apiName: \"Global.SendEmail\",\n      },\n      state: {\n        recordId: \"00QB000000BLjUrMAL\",\n        defaultFieldValues: encodeDefaultFieldValues({\n          HtmlBody: \"Pre-populated text for the email body.\",\n          Subject: \"Pre-populated Subject of the Email\",\n        }),\n      },\n    };\n\n    this&#91;NavigationMixin.Navigate](pageRef);\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"use-components-in-standalone-aura-apps\">\u5728\u72ec\u7acb Aura \u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u7ec4\u4ef6<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5728\u72ec\u7acb\u7684 Aura \u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u72ec\u7acb\u5e94\u7528\u7a0b\u5e8f\u5728\u5f00\u53d1\u4eba\u5458\u63a7\u5236\u53f0\u4e2d\u4e5f\u79f0\u4e3a Lightning \u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u5f15\u7528 Lightning Web \u7ec4\u4ef6\u7684\u547d\u540d\u7ea6\u5b9a\u662f \uff0c\u8fd9\u4e0e\u5728 Aura \u7ec4\u4ef6\u4e2d\u4f7f\u7528 Lightning Web \u7ec4\u4ef6\u7684\u547d\u540d\u7ea6\u5b9a\u76f8\u540c\u3002<code>&lt;namespace:camelCaseComponentName&gt;<\/code><\/p>\n\n\n\n<p>\u8fd9\u4e2a\u72ec\u7acb\u7684 Aura \u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4\u4e2d\u7684 Lightning Web \u7ec4\u4ef6\u3002<code>myComponent<\/code><code>c<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- sampleApp.app --&gt;\n&lt;aura:application&gt;\n  &lt;c:myComponent \/&gt;\n&lt;\/aura:application&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u64cd\u4f5c<br \/>\n\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002<\/p>\n<p>\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002<\/p>\n","protected":false},"author":1,"featured_media":3948,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233],"tags":[261],"class_list":["post-3939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightning-web-","tag-261"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"description\" content=\"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.ponybai.com\/?p=3939\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3939\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-26T00:55:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-03T01:18:18+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/action.png\" \/>\n\t<meta property=\"og:image:width\" content=\"879\" \/>\n\t<meta property=\"og:image:height\" content=\"385\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ponybai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"ponybai\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3939#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3939\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"\u5feb\u901f\u64cd\u4f5c\",\"datePublished\":\"2024-01-26T00:55:55+00:00\",\"dateModified\":\"2023-12-03T01:18:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3939\"},\"wordCount\":123,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"keywords\":[\"\u5feb\u901f\u64cd\u4f5c\"],\"articleSection\":[\"Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3939\",\"url\":\"http:\/\/www.ponybai.com\/?p=3939\",\"name\":\"\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2024-01-26T00:55:55+00:00\",\"dateModified\":\"2023-12-03T01:18:18+00:00\",\"description\":\"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3939#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3939\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3939#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5feb\u901f\u64cd\u4f5c\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ponybai.com\/#website\",\"url\":\"http:\/\/www.ponybai.com\/\",\"name\":\"\u767d\u767d\u968f\u7b14\",\"description\":\"Salesforce\u5b98\u65b9\u8bb2\u5e08\",\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ponybai.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\",\"name\":\"ponybai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"contentUrl\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"width\":248,\"height\":248,\"caption\":\"ponybai\"},\"logo\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/121.37.188.161\"],\"url\":\"http:\/\/www.ponybai.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14","description":"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.ponybai.com\/?p=3939","og_locale":"zh_CN","og_type":"article","og_title":"\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14","og_description":"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002","og_url":"http:\/\/www.ponybai.com\/?p=3939","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2024-01-26T00:55:55+00:00","article_modified_time":"2023-12-03T01:18:18+00:00","og_image":[{"width":879,"height":385,"url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/action.png","type":"image\/png"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3939#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3939"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"\u5feb\u901f\u64cd\u4f5c","datePublished":"2024-01-26T00:55:55+00:00","dateModified":"2023-12-03T01:18:18+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3939"},"wordCount":123,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"keywords":["\u5feb\u901f\u64cd\u4f5c"],"articleSection":["Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3939","url":"http:\/\/www.ponybai.com\/?p=3939","name":"\u5feb\u901f\u64cd\u4f5c - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2024-01-26T00:55:55+00:00","dateModified":"2023-12-03T01:18:18+00:00","description":"\u5feb\u901f\u64cd\u4f5c\u5feb\u901f\u64cd\u4f5c\u4f7f\u7528\u6237\u80fd\u591f\u5728 Salesforce \u4e2d\u6267\u884c\u66f4\u591a\u64cd\u4f5c\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u5feb\u901f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u7684\u5bfc\u822a\u548c\u5de5\u4f5c\u6d41\u7a0b\u5c3d\u53ef\u80fd\u987a\u7545\u3002\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u5728\u8bb0\u5f55\u9875\u9762\u4e0a\u8c03\u7528\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u3002\u914d\u7f6e\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6a21\u5f0f\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u65e0\u5934\u6267\u884c\u5176\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5feb\u901f\u64cd\u4f5c\u53ef\u4ee5\u6253\u5f00\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u5141\u8bb8\u7528\u6237\u521b\u5efa\u6216\u66f4\u65b0\u8bb0\u5f55\u4e0a\u7279\u5b9a\u5b57\u6bb5\u7684\u8868\u5355\u3002\u5feb\u901f\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u6267\u884c\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6216\u8c03\u5ea6\u4e8b\u4ef6\u7684 Lightning Web \u7ec4\u4ef6\u4ee3\u7801\u3002","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3939#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3939"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3939#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"\u5feb\u901f\u64cd\u4f5c"}]},{"@type":"WebSite","@id":"http:\/\/www.ponybai.com\/#website","url":"http:\/\/www.ponybai.com\/","name":"\u767d\u767d\u968f\u7b14","description":"Salesforce\u5b98\u65b9\u8bb2\u5e08","publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ponybai.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883","name":"ponybai","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/","url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","contentUrl":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","width":248,"height":248,"caption":"ponybai"},"logo":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/121.37.188.161"],"url":"http:\/\/www.ponybai.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3939"}],"version-history":[{"count":1,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3939\/revisions"}],"predecessor-version":[{"id":3949,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3939\/revisions\/3949"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/media\/3948"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3939"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}