I load static html file from resources folder as bellow in cocos2d-x c++. How can I do this in cocos2d-js.
auto webView = cocos2d::experimental::ui::WebView::create();
webView->setPosition(visibleSize/2);
webView->setContentSize(visibleSize);
webView->loadFile("info.html");
webView->setScalesPageToFit(true);
this->addChild(webView);
below code does not work
var htmlpage= cc.loader.getRes("res/info.html");
htmlpage.setPosition(0,0);
this.addChild(htmlpage);