npm install ddn-js --save
CommonJS
var DdnJS = require('ddn-js');
DdnJS.options.set('nethash','aaaaaa')
Front end
<script type="text/javascript" src="/ddn.js"></script>
# or
<script type="text/javascript" src="/ddn.min.js"></script>
window.DdnJS.options.set('nethash','aaaaaa')
console.log(window.DdnJS)
Please reference the ddn http interface documents