0
線23和sigma /插件/ sigma.neo4j.cypher/sigma.neo4j.cypher.js的24讀:Sigma.js的sigma.utils.xhr()方法在哪裏?
sigma.neo4j.send = function(neo4j, endpoint, method, data, callback) {
var xhr = sigma.utils.xhr(),
然而,西格瑪/ SRC/utils的/ sigma.utils.js沒有提及該方法。我正在使用最新的西格瑪庫的克隆。如何使用Neo4j的插件,避免錯誤:
TypeError: sigma.utils.xhr is not a function
'我' 的代碼是默認的例子:
sigma.neo4j.cypher(
{ url: 'xxx', user: 'demo-app', password: 'xxx' },
'MATCH (n) OPTIONAL MATCH (n)-[r]->(m) RETURN n,r,m LIMIT 100',
{ container: 'graph-container' } ,
function(s) {
console.log('Number of nodes :'+ s.graph.nodes().length);
console.log('Number of edges :'+ s.graph.edges().length);
}
);
包括有:
<script src="sigma/src/sigma.core.js"></script>
<script src="sigma/src/utils/sigma.utils.js"></script>
<script src="sigma/plugins/sigma.neo4j.cypher/sigma.neo4j.cypher.js">
您的幫助非常感謝。