调用ajax模块报错
- Dominant language
- JavaScript
- Stars
- 16
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
var KISSY = require('kissy').KISSY;
KISSY.use("node,ajax,json", function(S, Node, IO, JSON) {
IO.jsonp('http://query.yahooapis.com/v1/public/yql?q=select%20title%2Clink%2Cdescription%20from%20rss%20where%20url%3D%22http%3A%2F%2Fued.taobao.com%2Fblog%2Ffeed%2F%22&format=json&diagnostics=true',
function(data) {
log(JSON.stringify(data));
}
);
});
windows7
file:E:/nodejs/buyitmall/node_modules/kissy/build/ajax.js:1849
rTransportBase.supportCORS = ('withCredentials' in XhrTransportBase.nativeXhr(
^
TypeError: Cannot use 'in' operator to search for 'withCredentials' in undefined
Contributor guide
No contributing guide indexed for this repository
Research direction
Read node_modules/kissy/build/ajax.js at line 1849 and inspect the XHR path used by KISSY.use(...). Reproduce the Windows 7 require/ajax JSONP call and determine why nativeXhr is undefined; done means the call runs without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100