houdongen 发表于 2023-12-3 14:25:39

引入js,css和html

您好:

       在 queryLoad 事件下,路径都是测试服务器资源路径
var html = "<div>{{$.title}}</div>"
var json = {"title": "标题"};
var node = document.getELementById("content");
o2.loadAll({
    "js": ["/sample.o2oa.net/x_processplatform_assemble_surface/jaxrs/file/ef3418d4-2991-412c-ab0c-b762e56e5dcd/application/aca16606-b34f-4a95-a40d-e2af950c4354/content/index.js", "/sample.o2oa.net/x_processplatform_assemble_surface/jaxrs/file/70c7ce31-7df9-45c7-9659-eb1f8ba8d54e/application/aca16606-b34f-4a95-a40d-e2af950c4354/content/jsQR.js"],
    "css": ["/sample.o2oa.net/x_processplatform_assemble_surface/jaxrs/file/05b637dd-17b8-47b7-a148-7a5ec9d7f2be/application/aca16606-b34f-4a95-a40d-e2af950c4354/content/style.css"],
    "html": "/sample.o2oa.net/x_processplatform_assemble_surface/jaxrs/file/03e6b32f-53e2-4f32-a60c-d4af806e5f37/application/aca16606-b34f-4a95-a40d-e2af950c4354/content/index.html",
}, {"dom": node, "bind": json}, function(){
    //载入完成后的回调
});      
没有反应,是不是用错了......

论坛管理员 发表于 2023-12-4 10:48:36

我看您的地址是我们的企业通用环境的体验服务器?您是本身就在这台体验环境上做的吗?还是自己的服务器要引用sample上的文件?我看您的地址也是不对的,您是放在资源文件的?
需要您详细描述一下,您的脚本放在哪里?在哪里引用?

houdongen 发表于 2023-12-4 11:14:38

论坛管理员 发表于 2023-12-4 10:48
我看您的地址是我们的企业通用环境的体验服务器?您是本身就在这台体验环境上做的吗?还是自己的服务器要引 ...

是在体验服务器测试一下可行性,文件放在体验服务器资源文件,在体验服务器表单下,queryLoad事件下

论坛管理员 发表于 2023-12-5 09:28:49



那您引入的资源地址就是这个

页: [1]
查看完整版本: 引入js,css和html