Liferay创建访问其他portlet的resourceURL

在js中这样写

var resourceURL= Liferay.PortletURL.createResourceURL();
resourceURL.setResourceId(methodName);
resourceURL.setPortletMode('view');
resourceURL.setWindowState('normal');
resourceURL.setPortletId('fusion_WAR_learnplugin');
url = resourceURL.toString();