在js中这样写
var resourceURL= Liferay.PortletURL.createResourceURL(); resourceURL.setResourceId(methodName); resourceURL.setPortletMode('view'); resourceURL.setWindowState('normal'); resourceURL.setPortletId('fusion_WAR_learnplugin'); url = resourceURL.toString();