Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Terminal 这个YQL错误是什么意思?_Terminal_Yql_Url Encoding - Fatal编程技术网

Terminal 这个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

让我问一些比较简短的问题

我从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-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\')]"')