forked from fanruan/finekit
richie
5 years ago
1 changed files with 23 additions and 0 deletions
@ -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…
Reference in new issue