<App Theme="Basic">
<DockPanel>
<JavaScript>
var Observable = require("FuseJS/Observable");
var data = Observable();
var params = {url:'https://detail.tmall.com/item.htm?id=39595634961'}
fetch('http://open.macnie.com/taobao/item.json',{
method:'POST',
headers: { "Content-type": "application/json"},
body:JSON.stringify(params)
})
.then(function(resp){
if(resp.status == 200){
var body = resp._bodyInit;
return JSON.parse(body);
}else{
console.log('Network Error:'+resp.status);
}
})
module.exports = {
data: data
};
</JavaScript>
<Text Value="{data.title}" />
</DockPanel>
</App>
Please describe your problem if you want some help in fixing it