The project was built with iframes and left me speechless for five minutes. . . This kind of fossil-level thing is compatible with it, but the practical effect framework is rarely compatible with it.
There are also actual large frameworks that will not do this, such as angular. . . Not to mention this kind of controversy. .
The reality is to face the iframe
The first thing to look for is the element inside the iframe, which is parent to child. .
$('selectors supported by jquery', window.parent.document);
Returns matching nodes inside iframe
and from child to parent,
var iframe = document.getElementById("iframeworkspace");
var iwindow = iframe.contentWindow;
var ele = iwindow.document;
here you get the node completely, you can use
$(("html", ele.documentElement directly on the jquery package )).find("#pric_" + id).text("¥"+order_amount);
$(("html", ele.documentElement)).find("#yunfei_" + id).text("(including Shipping fee:¥"+shipping_fee+"yuan)");
It's up to you later.