动态添加js

动态添加js

Java

SystemConfig config = systemConfigService.getValueByName(CommonConstant.ORDER_NAME_CONFIG);
return "var orderTypes="+config.getConfigValue();

JS

document.write('<'+'script'+' type="text/javascript" src="/api/config?id=' + id + '"><'+'/script>')

你可能感兴趣的:(java,js,前端,javascript,java)