Created
May 12, 2022 12:13
-
-
Save alwaisy/461333b0a9e87385e64b3b1c38307e92 to your computer and use it in GitHub Desktop.
980435
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch("https://api.proxyscrape.com/v2/order/get_details.php", { | |
method: "POST", | |
body: JSON.stringify(price_urls) | |
}).then(function(res) { | |
return res.json(); | |
}).then(function(data) { | |
console.log(data, 'data'); | |
const keys = Object.keys(data); | |
keys.forEach((key, index) => { | |
$("#" + key).text(" " + twodecimal(data[key]["price"])); | |
console.log(data[key]["price"]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment