{"id":10000830,"date":"2024-05-31T14:52:11","date_gmt":"2024-05-31T06:52:11","guid":{"rendered":"http:\/\/axure.in\/?p=10000830"},"modified":"2025-05-21T16:35:25","modified_gmt":"2025-05-21T08:35:25","slug":"axure%e4%b8%ad%e7%ad%89%e5%be%85%e8%bf%9c%e7%a8%8b%e8%84%9a%e6%9c%ac%e5%8a%a0%e8%bd%bd%e5%ae%8c%e6%88%90%e5%90%8e%e5%86%8d%e6%89%a7%e8%a1%8c","status":"publish","type":"post","link":"http:\/\/axure.in\/?p=10000830","title":{"rendered":"Axure\u4e2d\u7b49\u5f85\u8fdc\u7a0b\u811a\u672c\u52a0\u8f7d\u5b8c\u6210\u540e\u518d\u6267\u884c\u6ce8\u5165\u811a\u672c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u73b0\u72b6<\/h2>\n\n\n\n<p>\u7f51\u4e0a\u5df2\u7ecf\u6709\u5f88\u591a\u5728Axure\u6ce8\u5165\u8fdc\u7a0b\u811a\u672c\u7684\u65b9\u6cd5\uff0c\u5927\u591a\u6570\u90fd\u662f\u4f7f\u7528$axure.utils.loadJS()\u65b9\u6cd5\uff0c\u518d\u901a\u8fc7\u5ef6\u65f6\u51e0\u79d2\u53bb\u6267\u884c\u4ee3\u7801\u3002\u4f46\u662f\u5982\u679c\u78b0\u5230\u7f51\u7edc\u4e0d\u597d\u7684\u65f6\u5019\uff0c\u4f1a\u51fa\u73b0\u627e\u4e0d\u5230\u8fdc\u7a0b\u811a\u672c\u4e2d\u7684\u65b9\u6cd5\uff0c\u8fd8\u9700\u8981\u518d\u53bb\u505a\u8f6e\u8be2\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"427\" height=\"69\" src=\"http:\/\/axure.in\/wp-content\/uploads\/2024\/05\/image-5.png\" alt=\"\" class=\"wp-image-10001174\" srcset=\"http:\/\/axure.in\/wp-content\/uploads\/2024\/05\/image-5.png 427w, http:\/\/axure.in\/wp-content\/uploads\/2024\/05\/image-5-300x48.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5206\u6790<\/h2>\n\n\n\n<p>\u627e\u5230axutils.js\u6587\u4ef6\uff0c\u627e\u5230loadJS\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$axure.utils.loadJS = function (url) {\n  $('head').append('&lt;script text=\"text\/javascript\" language=\"JavaScript\" src=\"' + url + '\"&gt;&lt;\/script&gt;');\n};<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790\u6e90\u7801\u53ef\u5f97\u77e5\u662f\u5728&lt;head\/&gt;\u91cc\u63d2\u5165\u4e86\u4e00\u4e2a&lt;script\/&gt;\u800c\u5df2\u3002\u800c&lt;script\/&gt;\u6807\u7b7e\u5728\u8fdc\u7a0b\u6587\u4ef6\u52a0\u8f7d\u5b8c\u6210\u65f6\u4f1a\u81ea\u52a8\u89e6\u53d1OnLoad\u65b9\u6cd5\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e00\u70b9\u6765\u5b9e\u73b0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6559\u7a0b<\/h2>\n\n\n\n<p>\u56e0\u4e3aAxure\u81ea\u5e26\u662fjQuery\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>javascript:$('&lt;script\/&gt;').on('load',function(){\u6267\u884c\u811a\u672c\u4ee3\u7801}).appendTo('body').attr('src','\u8fdc\u7a0b\u811a\u672c\u5730\u5740');<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u628a&nbsp;<strong>\u6267\u884c\u811a\u672c\u4ee3\u7801<\/strong>&nbsp;\u6362\u6210\u4f60\u7684\u4ee3\u7801\uff0c\u628a&nbsp;<strong>\u8fdc\u7a0b\u811a\u672c\u5730\u5740<\/strong>&nbsp;\u6362\u6210\u4f60\u7684\u8fdc\u7a0b\u811a\u672c\u5730\u5740\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u4e00\u79cd\u60c5\u51b5\uff0c\u5c31\u662f\u6211\u4eec\u8981\u5b9e\u73b0\u7684\u529f\u80fd\u53ef\u80fd\u9700\u8981\u591a\u4e2a\u811a\u672c\uff0c\u57fa\u4e8e\u4e00\u4e2a\u811a\u672c\u8fd8\u4f9d\u8d56\u4e8e\u53e6\u4e00\u4e2a\u811a\u672c\uff0c\u8981\u7b49\u7236\u811a\u672c\u52a0\u8f7d\u5b8c\u6210\u540e\u624d\u80fd\u52a0\u8f7d\u5b50\u811a\u672c\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u628a\u4ee3\u7801\u518d\u5d4c\u5957\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>javascript:$('&lt;script\/&gt;').on('load',function(){$('&lt;script\/&gt;').on('load',function(){\u6267\u884c\u811a\u672c\u4ee3\u7801}).appendTo('body').attr('src','\u5b50\u8fdc\u7a0b\u811a\u672c\u5730\u5740');}).appendTo('body').attr('src','\u7236\u8fdc\u7a0b\u811a\u672c\u5730\u5740');<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u6709\u591a\u7ea7\u4f9d\u8d56\uff0c\u5c31\u591a\u7ea7\u5d4c\u5957\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u6bcf\u6bb5\u4ee3\u7801\u90fd\u5728\u8fdc\u7a0b\u811a\u672c\u90fd\u52a0\u8f7d\u5b8c\u6210\u540e\u624d\u6267\u884c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u9636<\/h2>\n\n\n\n<p>\u5176\u5b9ejQuery\u672c\u6765\u5c31\u6709jQuery.getScript()\u53ef\u4f9b\u4f7f\u7528\uff0c\u5e76\u4e14\u8fd8\u80fd\u5904\u7406HTTP\u5931\u8d25\uff0c\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u53bb\u67e5\u770b\u4e00\u4e0b\u5b98\u65b9\u6587\u6863\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-jquery-api-documentation wp-block-embed-jquery-api-documentation\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"IfUQnPRdoa\"><a href=\"https:\/\/api.jquery.com\/jQuery.getScript\/\">jQuery.getScript()<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;jQuery.getScript()&#8221; &#8212; jQuery API Documentation\" src=\"https:\/\/api.jquery.com\/jQuery.getScript\/embed\/#?secret=RNeDuS8RsL#?secret=IfUQnPRdoa\" data-secret=\"IfUQnPRdoa\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/axure.in\">\u6700In\u306eAxure<\/a> &raquo; <a href=\"http:\/\/axure.in\/?p=10000830\">Axure\u4e2d\u7b49\u5f85\u8fdc\u7a0b\u811a\u672c\u52a0\u8f7d\u5b8c\u6210\u540e\u518d\u6267\u884c\u6ce8\u5165\u811a\u672c<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u73b0\u72b6 \u7f51\u4e0a\u5df2\u7ecf\u6709\u5f88\u591a\u5728Axure\u6ce8\u5165\u8fdc\u7a0b\u811a\u672c\u7684\u65b9\u6cd5\uff0c\u5927\u591a\u6570\u90fd\u662f\u4f7f\u7528$axure.utils.loadJS()\u65b9\u6cd5\uff0c\u518d\u901a\u8fc7\u5ef6\u65f6\u51e0\u79d2\u53bb\u6267\u884c\u4ee3\u7801\u3002\u4f46\u662f\u5982\u679c\u78b0\u5230\u7f51\u7edc\u4e0d\u597d\u7684\u65f6\u5019\uff0c\u4f1a\u51fa\u73b0\u627e\u4e0d\u5230\u8fdc\u7a0b\u811a\u672c\u4e2d\u7684\u65b9\u6cd5\uff0c\u8fd8\u9700\u8981\u518d\u53bb\u505a\u8f6e\u8be2\u3002 \u5206\u6790 \u627e\u5230axutils.js\u6587 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[37],"tags":[157,158,150,156,155],"class_list":{"0":"post-10000830","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-beginner-tutorial","7":"tag-inject","8":"tag-injection","9":"tag-javascript","11":"tag-155"},"_links":{"self":[{"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/posts\/10000830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/axure.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10000830"}],"version-history":[{"count":10,"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/posts\/10000830\/revisions"}],"predecessor-version":[{"id":10001175,"href":"http:\/\/axure.in\/index.php?rest_route=\/wp\/v2\/posts\/10000830\/revisions\/10001175"}],"wp:attachment":[{"href":"http:\/\/axure.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10000830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/axure.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10000830"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/axure.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10000830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}