servers\webServer\x_desktop
查看了o2.load的方法导入到main。但是这个是要做做成全局水印。通过在webServer/x_desktop/index.html页面添加调用获取当前登陆人姓名。
<script>
$(function () {
$.ajax({
type: 'GET',
dataType: 'json',
url: 'http://192.168.0.39:20030/x_program_center/jaxrs/authentication',
headers: { 'x-debugger': true },
contentType: 'application/json',
xhrFields: { 'withCredentials': true },
crossDomain: true,
data: "",//JSON.stringify(data),
success: function (json) {
$("#shuiyin").text(json.data.data.name);
watermark({watermark_txt: json.data.data.name });
}
});
});
</script>
然后传递到水印JS代码。
----------------问题:
1.单独使用水印代码无问题。
2.在index.html引入<script src="../o2_lib/jquery/jquery.min.js"></script>使用 $.ajax({获取当前登陆人姓名可以获取。
3.经检查为:index.html引入<script src="../o2_lib/jquery/jquery.min.js"></script>后与<DIV id=browser_loading冲突,一直加载,注释掉loading后,只显示水印不显示其他模块。
4.查阅手册https://www.yuque.com/o2oa/course/qyqi3x 如何在O2OA中使用Jquery 只有:在页面Form载入后应用动态引用jquery库。
So,如何在官方模板html里面引用官方jquery库,实现全屏水印效果。
谢谢管理员。 您是说您是$ 和我们系统自动的冲突吗。
您参考一下
解决query和其他库之间的冲突
页:
[1]