wp-plugin-bluehost
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/diywmcom/public_html/baifaqimei/wp-includes/functions.php on line 6114wp-pagenavi
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/diywmcom/public_html/baifaqimei/wp-includes/functions.php on line 6114\u4e3a\u4e86\u907f\u514dASP\u7a0b\u5e8f\u548cHTML\u4ee3\u7801\u6df7\u5199\u9020\u6210\u7ef4\u62a4\u56f0\u96be\u7684\u60c5\u51b5\uff0c\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u65b9\u6cd5\uff0c\u5229\u7528\u6a21\u677f\u6765\u5206\u79bb\u7a0b\u5e8f\u548c\u9875\u9762\uff0c\u4f7f\u7a0b\u5e8f\u8bbe\u8ba1\u66f4\u52a0\u8f7b\u677e\u3002<\/p>\n
\u5728\u4f7f\u7528ASP\u5236\u4f5c\u4e00\u4e2a\u7ad9\u70b9\u7684\u65f6\u5019\uff0c\u5e38\u5e38\u4f1a\u51fa\u73b0\u4e00\u4e2aASP\u6587\u4ef6\u4e2d\uff0c\u7a0b\u5e8f\u4ee3\u7801\u548cHTML\u4ee3\u7801\u6df7\u5408\u7684\u60c5\u51b5\u3002\u8fd9\u6837\u5b50\u505a\u6709\u8bb8\u591a\u7f3a\u70b9\uff1a
\n 1. \u4e14\u4e0d\u8bf4\u7f16\u7a0b\u65f6\u5c31\u8981\u5bf9\u9875\u9762\u5e03\u5c40\u8fdb\u884c\u8bbe\u8ba1\u548c\u7f16\u6392\uff0c\u9020\u6210\u4ee3\u7801\u6df7\u4e71\u96be\u61c2\uff0c\u4e0d\u89c4\u8303\uff1b
\n 2. \u5f53\u9700\u8981\u6539\u53d8\u9875\u9762\u5916\u89c2\u65f6\uff0c\u4f60\u4e0d\u4ec5\u8981\u6539\u53d8HTML\u90e8\u4efd\uff0c\u4e5f\u9700\u8981\u6539\u53d8ASP\u4ee3\u7801\uff0c\u4e0d\u6613\u7ef4\u62a4\u3002<\/p>\n
\u90a3\u4e48\uff0c\u8981\u5982\u4f55\u624d\u80fd\u907f\u514d\u8fd9\u4e9b\u9ebb\u70e6\u5462\uff1f
\n \u7b54\u6848\u5c31\u662f\u4f7f\u7528\u6a21\u677f\u6587\u4ef6\uff0c\u5c06ASP\u4ee3\u7801\u548cHTML\u9875\u9762\u5206\u5f00\uff0c\u4e00\u5207\u95ee\u9898\u5c31\u90fd\u89e3\u51b3\u4e86\u3002\u4f7f\u7528\u6a21\u677f\u6709\u4ee5\u4e0b\u597d\u5904\uff1a
\n 1. \u5728\u5f88\u77ed\u7684\u65f6\u95f4\u5185\u53ef\u4ee5\u66ff\u6362\u6574\u4e2a\u7ad9\u70b9\u7684\u5916\u89c2\uff1b
\n 2. \u4f7f\u7a0b\u5e8f\u5458\u53ef\u4ee5\u62bd\u8c61\u7f16\u7a0b\uff0c\u800c\u65e0\u987b\u63a5\u89e6HTML\u4ee3\u7801\uff1b
\n 3. \u53ef\u4ee5\u91cd\u590d\u5229\u7528\u4ee5\u524d\u7684\u6a21\u677f\u3002<\/p>\n
\u4f7f\u7528\u8fc7PHP\u7684\u7a0b\u5e8f\u5c31\u4f1a\u77e5\u9053\uff0cPHP\u6709\u4e2a\u6a21\u677f\u7a0b\u5e8f(FastTemplate)\uff0c\u73b0\u5728\u7684\u95ee\u9898\u662f\u5982\u4f55\u5728ASP\u4e2d\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\u3002
\n Microsoft\u7684ASP\u5e26\u6709\u4e24\u79cd\u811a\u672c\uff1aVBScript\u548cJScript\u3002\u5b83\u4eec\u90fd\u5e26\u6709\u4e00\u4e2a "\u6b63\u5219\u8868\u8fbe\u5f0f\u5bf9\u8c61" (RegExp)\uff0c\u5229\u7528\u5b57\u7b26\u4e32\u5bf9\u8c61\u548cRegExp\u5bf9\u8c61\uff0c\u5c31\u53ef\u4ee5\u8f7b\u677e\u7684\u5b9e\u73b0\u6a21\u677f\u529f\u80fd\u3002\u6c90\u67ab\u4ee5\u6b64\u7f16\u5199\u4e86\u4e00\u4e2a "Template.JScript.INC" \u6587\u4ef6\uff0c\u6b64\u6587\u4ef6\u7684\u5185\u5bb9\u9644\u5728\u6587\u7ae0\u540e\u9762\u3002\u6709\u80fd\u529b\u7684\u8bfb\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8fdb\u884c\u6539\u8fdb\u3002<\/p>\n
\u4e0b\u9762\u4ecb\u7ecd\u4e00\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3002\u7531\u4e8e\u6b64\u6587\u4ef6\u662f\u4f7f\u7528JScript\u7f16\u5199\u7684\uff08\u5f53\u7136\u8981\u8f6c\u6210VBScript\u4e5f\u5f88\u5bb9\u6613\uff09\uff0c\u56e0\u6b64\uff0c\u7f3a\u7701\u811a\u672c\u8bed\u8a00\u8981\u8bbe\u4e3aJScript\uff0c\u5373ASP\u7a0b\u5e8f\u7b2c\u4e00\u884c\u5e94\u4e3a\uff1a<%@Language=JScript%>\uff0c\u7136\u540e\u518d\u5305\u542b\u6a21\u677f\u7a0b\u5e8f\u6587\u4ef6\uff1a\u3002<\/p>\n
\u5148\u4ecb\u7ecd\u4e00\u4e0bTemplate\u7c7b\u7684\u4f7f\u7528\uff1a
\n 1. \u5efa\u7acbTemplate\u5bf9\u8c61\uff1aTemplate(Path)
\n \u53c2\u6570\uff1aPath(\u5b57\u7b26\u4e32\u7c7b\u578b) HTML\u6a21\u677f\u6587\u4ef6\u7684\u5b58\u653e\u8def\u5f84\u3002
\n \u4f7f\u7528new \u64cd\u4f5c\u7b26\u5efa\u7acbTemplate\u5bf9\u8c61\u3002<\/p>\n
\u4f8b\u5b50\uff1a
\n var tpl = new Template("c:\\\\template");<\/p>\n
\u5728\u7a0b\u5e8f\u4e2d\u53ef\u4ee5\u7528tpl.TplPath\u6765\u53d6\u5f97\u6a21\u677f\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7tpl.TplPath\u6765\u6539\u53d8\u6a21\u677f\u8def\u5f84\u3002
\n \u5982\uff1a
\n tpl.TplPath = "d:\\\\template";<\/p>\n
2. \u88c5\u8f7d\u6a21\u677f\u6587\u4ef6\uff1aTemplate.Load(Name, File)
\n \u53c2\u6570\uff1aName(\u5b57\u7b26\u4e32\u7c7b\u578b) \u662f\u4e00\u4e2a\u6a21\u677f\u53d8\u91cf\u540d\u3002
\n File(\u5b57\u7b26\u4e32\u7c7b\u578b) \u6a21\u677f\u6587\u4ef6\u540d\u3002\u6b64\u6587\u4ef6\u5b58\u653e\u5728HTML\u6a21\u677f\u8def\u5f84\u4e0b\u3002
\n \u8bfb\u53d6\u6587\u4ef6File\u5230\u6a21\u677f\u53d8\u91cfName\u4e2d\u3002<\/p>\n
\u4f8b\u5b50\uff1a
\n tpl.Load("Main", "TEST.HTM");<\/p>\n
\u6b64\u65f6\uff0c\u6a21\u677f\u53d8\u91cfMain\u5c31\u5305\u542b\u4e86\u6587\u4ef6TEST.HTM\u7684\u5185\u5bb9\u3002
\n \u4f60\u53ef\u4ee5\u7528tpl.Main\u6765\u8bbf\u95ee\u6a21\u677f\u53d8\u91cf"Main"\u3002<\/p>\n
\u4f8b\u5b50\uff1a
\n <%=tpl.Main%>
\n \u5c06\u663e\u793a\u521a\u624d\u8bfb\u8fdb\u6765\u7684TEST.HTM\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n
3. \u6a21\u677f\u5206\u62c6\uff1aTemplate.Split(Name)
\n \u53c2\u6570\uff1aName(\u5b57\u7b26\u4e32\u7c7b\u578b) \u662f\u4e00\u4e2a\u6a21\u677f\u53d8\u91cf\u540d\u3002
\n \u5c06Name\u4e2d\u7684\u5b50\u6a21\u677f\u5206\u89e3\u3002<\/p>\n
\u4f8b\u5b50\uff1a
\n \u5148\u5047\u8bbe\u4e0a\u4f8b\u4e2d\u7684TEST.HTM\u5185\u5bb9\u4e3a\uff1a
\n ——————-
\n \u8fd9\u662f\u4e3b\u6a21\u677f\u3002\u63a5\u4e0b\u6765\u662f\uff1aSUB\u5b50\u6a21\u677f\uff0c\u8fd8\u6709
\n THIRD\u6a21\u677f\u3002
\n
\n ——————-
\n \u90a3\u4e48\uff1a
\n tpl.Split("Main");
\n \u6267\u884c\u4ee5\u540e\uff0c\u5c31\u4f1a\u751f\u6210\u65b0\u7684\u6a21\u677f\u53d8\u91cf"SUB"\uff0c\u548c"THIRD"\uff0c\u5b83\u4eec\u7684\u5185\u5bb9\u5c31\u662f\u548c\u4e4b\u95f4\u8bed\u53e5\u3002
\n \u800c\u4e14"Main"\u6a21\u677f\u53d8\u91cf\u7684\u5185\u5bb9\u4e5f\u4f1a\u53d1\u751f\u6539\u53d8\uff1a<\/p>\n
tpl.Main \u7684\u5185\u5bb9\u4e3a\uff1a"\u8fd9\u662f\u4e3b\u6a21\u677f\u3002\u63a5\u4e0b\u6765\u662f{SUB}"
\n tpl.SUB \u7684\u5185\u5bb9\u4e3a\uff1a"SUB\u5b50\u6a21\u677f\uff0c\u8fd8\u6709{THIRD}"
\n tpl.THIRD \u7684\u5185\u5bb9\u4e3a\uff1a"THIRD\u6a21\u677f\u3002"<\/p>\n
TPLDEF \u548c TPLEND \u5b9a\u4e49\u7684\u8bed\u53e5\u5757\u5145\u8bb8\u591a\u91cd\u5d4c\u5957\u3002<\/p>\n
4. \u6a21\u677f\u5904\u7406\uff1aTemplate.Parse(Name)
\n \u53c2\u6570\uff1aName(\u5b57\u7b26\u4e32\u7c7b\u578b) \u662f\u4e00\u4e2a\u6a21\u677f\u53d8\u91cf\u3002
\n \u5c06\u6a21\u677f\u4e2d\u7528\u82b1\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u5b57\u4e32\u7528\u540c\u540d\u7684\u6a21\u677f\u53d8\u91cf\u7684\u5185\u5bb9\u66ff\u6362\u3002<\/p>\n
\u4f8b\u5b50\uff1a\u7eed\u4e0a\u4f8b
\n <%=tpl.Parse("Main")%>
\n \u663e\u793a\uff1a"\u8fd9\u662f\u4e3b\u6a21\u677f\u3002\u63a5\u4e0b\u6765\u662fSUB\u5b50\u6a21\u677f\uff0c\u8fd8\u6709{THIRD}"<\/p>\n
\u7531\u4f8b\u5b50\u53ef\u77e5\uff0cParse\u53ea\u66ff\u6362"Main"\u6a21\u677f\u4e2d\u7684{SUB}\u53d8\u91cf\uff0c\u800c\u4e0d\u80fd\u5d4c\u5957\u66ff\u6362\u4e0b\u53bb\u3002\u8fd9\u662f\u4e3a\u4e86\u589e\u52a0\u7a0b\u5e8f\u7075\u6d3b\u6027\u800c\u6545\u610f\u8bbe\u8ba1\u7684\u3002\u90a3\u4e48\u8be5\u600e\u4e48\u6837\u5b8c\u6574\u663e\u793a"Main"\u6a21\u677f\u5462\uff1f<\/p>\n
\u4f8b\u5b50\uff1a
\n tpl.SUB = tpl.Parse("SUB"); \/\/\u5148\u5904\u7406SUB\u53d8\u91cf\uff0c\u518d\u5904\u7406Main\u53d8\u91cf\u3002
\n Response.write(tpl.Parse("Main"));<\/p>\n
5. \u81ea\u5b9a\u4e49\u6a21\u677f\u53d8\u91cf\u3002
\n \u81ea\u5b9a\u4e49\u6a21\u677f\u53d8\u91cf\u5f88\u7b80\u5355\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u8d4b\u503c\u8bed\u53e5\u6765\u5b9a\u4e49\u548c\u4fee\u6539\u4efb\u4f55\u53d8\u91cf\uff1a<\/p>\n
\u4f8b\u5b50\uff1a
\n tpl.Hahaha = "\u8fd9\u662f\u81ea\u5b9a\u4e49\u53d8\u91cf";
\n tpl.THIRD = "\u6539\u53d8\u539f\u6a21\u677f\u4e2d\u7684THIRD\u53d8\u91cf";<\/p>\n
\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8eJScrip\u662f\u533a\u5206\u5927\u5c0f\u5199\u7684\uff0c\u56e0\u6b64\u4e00\u5b9a\u8981\u6ce8\u610f\u5927\u5c0f\u5199\u7684\u62fc\u5199\u3002\u4e00\u822c\u6765\u8bf4\uff0cHTML\u6a21\u677f\u4e2d\u5b9a\u4e49\u7684\u6a21\u677f\u53d8\u91cf\u90fd\u7528\u5927\u5199\u3002<\/p>\n
\u53e6\u5916\uff0c\u6a21\u677f\u4e2d\u4f7f\u7528\u7684"TplPath"\uff0c"Load"\uff0c"Parse"\uff0c"Split"\u53d8\u91cf\u662f\u5185\u90e8\u4f7f\u7528\u7684\uff0c\u4e0d\u8981\u632a\u505a\u5b83\u7528\uff0c\u5426\u5219\u7a0b\u5e8f\u5c06\u53ef\u80fd\u53d1\u751f\u5f02\u5e38\u3002<\/p>\n
\u4e0b\u9762\u4e3e\u4e2a\u5b8c\u6574\u7684\u4f8b\u5b50\uff1a<\/p>\n
\u7b2c\u4e00\u6b65\uff1a\u5148\u5efa\u7acbHtml\u6a21\u677f\u6587\u4ef6\u3002<\/p>\n
\u8fd9\u91cc\u5148\u8bf4\u660eHTML\u6a21\u677f\u6587\u4ef6\u7684\u7ec4\u6210\u3002\u9996\u5148\uff0c\u5b83\u548c\u666e\u901a\u7684HTML\u6587\u4ef6\u51e0\u4e4e\u6ca1\u6709\u533a\u522b\uff0c\u53ea\u4e0d\u8fc7\u591a\u4e86\u51e0\u4e2a\u6807\u8bb0\u3002
\n \u6a21\u677f\u7684\u6807\u8bb0\u6709\u4e24\u79cd\u3002\u8ba9\u6211\u4eec\u5148\u770b\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n
TEST.HTM
\n —————–
\n
\n
\n
X<\/td>\n | X\u7684\u5e73\u65b9<\/td>\n<\/tr>\n <\/p>\n |
{X}<\/td>\n | {XX}<\/td>\n<\/tr>\n \u4ee5\u4e0a\u5171\u6709{COUNT}\u884c\u6570\u636e\u3002 \u4ece\u4e0a\u9762\u53ef\u4ee5\u770b\u51fa\uff0c\u8c61{X}\uff0c{XX}\uff0c{COUNT}\u4e4b\u7c7b\u7684\u8bb0\u53f7\u662f\u5b9a\u4e49\u6a21\u677f\u53d8\u91cf\u3002\u5b83\u4eec\u5c06\u4f1a\u5728ASP\u7a0b\u5e8f\u4e2d\u88ab\u66ff\u4ee3\u3002 \u7b2c\u4e8c\u6b65\uff1a\u8bbe\u8ba1ASP\u7a0b\u5e8f\u3002<\/p>\n TEST.ASP \u901a\u5e38\u5728\u4f7f\u7528\u6a21\u677f\u7684\u60c5\u51b5\u4e0b\uff0c\u90fd\u53ea\u8981\u5728\u6700\u540e\u4e00\u884c\u52a0\u4e0a\u663e\u793a\u9875\u9762\u7684\u8bed\u53e5\u3002\u56e0\u6b64\u6574\u4e2a\u7a0b\u5e8f\u663e\u5f97\u5341\u5206\u6e05\u6670\u3002\u6b64\u65f6\uff0c\u53ea\u8981\u5bf9\u6a21\u677f\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\uff0c\u5c31\u53ef\u4ee5\u6539\u53d8\u6574\u4e2a\u9875\u9762\u7684\u5916\u89c2\u3002 \u9644\uff1aTemplate \u6e90\u7a0b\u5e8f this[arr[1} = arr[2]; function Template_Load(name,filename) \/\/Template Constructor<\/p>\n function Template(path) \/\/Method \u4e3a\u4e86\u907f\u514dASP\u7a0b\u5e8f\u548cHTML\u4ee3\u7801\u6df7\u5199\u9020\u6210\u7ef4\u62a4\u56f0\u96be\u7684\u60c5...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-8"],"_links":{"self":[{"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loveshow.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":1,"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/loveshow.us\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/loveshow.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loveshow.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loveshow.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |