var script = _managerAppService.GetJavascriptHelper(); var response = Request.CreateResponse(System.Net.HttpStatusCode.OK, script, new PlainTextFormatter()); response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/x-javascript"); return response;
可以return Content("")嘛