Browse Source

js

pull/1/head
richie 5 years ago
parent
commit
ceb14fb45e
  1. 23
      src/main/java/com/fanruan/api/report/script/JavaScriptKit.java

23
src/main/java/com/fanruan/api/report/script/JavaScriptKit.java

@ -0,0 +1,23 @@
package com.fanruan.api.report.script;
import com.fr.js.JavaScript;
import com.fr.js.JavaScriptImpl;
/**
* @author richie
* @version 10.0
* Created by richie on 2019/9/20
* 从服务器端生成给web端使用的javascript代码的工具类
*/
public class JavaScriptKit {
/**
* 生成一个简单的JavaScript实例
*
* @param content 脚本内容
* @return JavaScript实例
*/
public JavaScript newSimpleJavaScript(String content) {
return new JavaScriptImpl(content);
}
}
Loading…
Cancel
Save