Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: lib,
- method: 'GET',
- async: false,
- headers: {"accept":"application/json;odata=verbose"},
- success: function(data) {
- /* console.log(data); */
- if(data.d != undefined) {
- var temp_merch= [];
- $.each(data.d.results, function (i,item) {
- }//each
- } });
- var products = [{ Dell Laptop: { price: 1000.00, color: black },
- HP Laptop: { price: 900.00, color: grey }]
- var dellLaptopPrice = products["Dell Laptop"].price;
- var dellLaptopColor = products["Dell Laptop"].color;
Add Comment
Please, Sign In to add comment