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.
23 lines
535 B
23 lines
535 B
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 static JavaScript newSimpleJavaScript(String content) { |
|
return new JavaScriptImpl(content); |
|
} |
|
}
|
|
|