forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
528 B
24 lines
528 B
6 years ago
|
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);
|
||
|
}
|
||
|
}
|