Terminal 这个YQL错误是什么意思?
让我问一些比较简短的问题 我从YQL控制台得到的结果不是我的终端 下面是我的代码Terminal 这个YQL错误是什么意思?,terminal,yql,url-encoding,Terminal,Yql,Url Encoding,让我问一些比较简短的问题 我从YQL控制台得到的结果不是我的终端 下面是我的代码 new YQL.exec('select * from html where url="http://fortune.daum.net/external/4/run/star_free/index.php" and xpath="//td[contains(@style,"font-family:굴림; font-size:12px; color:#333333; line-height:18px; padding
new YQL.exec('select * from html where url="http://fortune.daum.net/external/4/run/star_free/index.php" and xpath="//td[contains(@style,"font-family:굴림; font-size:12px; color:#333333; line-height:18px; padding-right:10px")]/"', function(response) {
console.log(response);
//response consists of JSON that you can parse
if (response.error) {
console.log('error');
}
else {
//var location = response.query.results.result;
var location = response.query.results.result;
console.log(location);
}
});
似乎您弄错了多级引号,请尝试以下操作:
new YQL.exec('select * from html where url="http://fortune.daum.net/external/4/run/star_free/index.php" and xpath="//td[contains(@style,\'font-family:굴림; font-size:12px; color:#333333; line-height:18px; padding-right:10px\')]"')