我想在 paysucc.html 中添加一个脚本标记,如果response.statusText ==" OK"。怎么可能?
脚本:
typo3_src-*/index.php
checkoutId是 response.data.id
Payment.html:
PDFAnnotationSquare was deprecated in OS X 10.12: Use the PDFAnnotation class directly, setting properties via kPDFAnnotationKey_* keys using method [setValue:forAnnotationKey:]
Controller.js:
<script src="https://test.oppwa.com/v1/paymentWidgets.js?checkoutId={checkoutId}"></script>
routes.js:
<button type="submit" class="btn-normal pay-btn" ng-click="processpartners()">Pay From Processing partners</button>
答案 0 :(得分:0)
请尝试这个解决方案,它可以帮助你:
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://somedomain.com/somescript";
$("head").append(s);