查看: 3900|回复: 1

引入文件方式

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37187
发表于 2020-5-28 11:12:53 | 显示全部楼层 |阅读模式
1.如果表单中没有queryLoad事件,添加queryLoad事件。在事件中引入对应脚本配置


2.脚本配置,这些脚本都在queryLoad添加
方法一:Element方法
mootools 的Element
如:
new Element("link", {
"rel": "stylesheet",
"type": "text/css",
"href": "custom/css/bulma.css"
}).inject($(document.head));
方法二:include方法
http://www.o2oa.net/x_desktop/app.html?app=portal.Portal&status={%22portalId%22:%22dcd8e168-2da0-4496-83ee-137dc976c7f6%22,%22pageId%22:%22c997dc5a-a575-4349-9246-80a87ef59bf6%22}&anonymous
this.include("脚本名");

方法三:load方法
o2.load("url", function(){           
}.bind(this));
o2.loadCss(url, document.body,function(){
}.bind(this));

3.然后在需要的时候使用css样式或者调用js方法或者函数
回复

使用道具 举报

升级   52%

64

主题

81

回帖

356

积分

中级会员

Rank: 3Rank: 3

积分
356
发表于 2020-6-8 17:34:16 | 显示全部楼层
谢谢管理员
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread