如何使用 jQuery 更改 HTML 页面?

问题描述

我在 index.html 页面中使用 jQuery。目标是将 json 发送到另一个页面

postUploadUrl = "https://localhost:1580/ean/send/file"; 
$.post({
  url:postUploadUrl,contentType: "application/json",dataType: "json",data: resJson
});

otherpage.html 处于另一个流程中。

index.html 和 otherpage.html 在两个不同的解析模板中

当我在otherpage.html的解析模板上放置一个断点时,我看到Mule进入良好的流程并停在otherpage.html的解析模板上。 问题是他没有显示页面autrepage.html。他还在 index.html 页面上。

有index.html的部分流程

<choice doc:name="Choice" doc:id="15c0c63d-4071-4d60-8817-5642ead5fbb6" >
            <when expression="#[vars.isLog != 'true']">
                <parse-template doc:name="index.html" doc:id="bba0a925-fcf3-46cd-9060-cdc4708ae418" location="ean\index.html"/>
          
</when>
            <otherwise >
            <flow-ref doc:name="Go_Login.hml" doc:id="0e2e49ac-92eb-4376-83ac-33b5c9ff3139" name="Login-Flow"/>
          </otherwise>
      </choice>

流程中存在otherpage.html的部分

<flow name="Insert-EanFlow" doc:id="16164463-1067-4fd9-9631-5836f4979e8e" >
        <http:listener doc:name="Listener" doc:id="fdd02707-02a8-4b3b-beee-79770b5f6eae" config-ref="HTTP_Listener_config" path="/ean/send/file">

...
...
...
        <parse-template doc:name="Parse Template" doc:id="3dfe5b15-e3fa-4763-b5f4-d0ed41d05eb8" location="ean\otherpage.html" />
    </flow>

请帮忙。

此致。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)