javascript - Alfresco 5.2:JavaScript 无法在 IE 中运行
问题描述
我自定义“activiti-transitions.js”文件并在 CHROME 中完成工作。
但不能在 IE 中工作。(在我的 IE 中 - JavaScript 已启用)我的脚本不起作用:
onClick: function ActivitiTransitions_onClick(e, p_obj)
{
var me = this;
var buttonId = p_obj.get("id");
//NEW
if(buttonId.includes("Reject")
){
var dashboardUri = Alfresco.util.uriTemplate("userdashboardpage",
{
userid: encodeURIComponent(Alfresco.constants.USERNAME)
});
Alfresco.util.PopupManager.displayPrompt(
{
title: $msg("Title),
text: $msg("Content"),
buttons: [
{
text: $msg("OK"),
handler: function onOK()
{
this.destroy();
me._onClickOk.call(me, p_obj)
window.location = dashboardUri;
}
},
{
text: $msg("Cancle"),
handler: function onCancel()
{
this.destroy();
window.location = dashboardUri;
},
isDefault: true
}]
});
}else{
Alfresco.util.submitForm(p_obj.getForm());
}
}
请帮我!
解决方案
推荐阅读
- html - 在不加载 HTML 的情况下绑定 Angularjs 指令(bootstrap .modal('show'))
- javascript - 将数组转换为对象并将对象推入数组-javascript
- c# - WriteClientCharacteristicConfigurationDescriptorAsync 在 UWP 中不起作用
- java - 非 UTF 8 编码的 CSV 特殊字符问题
- ruby-on-rails - 未通过授权(设计身份验证令牌)
- git - 如何将分离的 HEAD 冲突修复与原始分支合并?
- json - 如何在不使用正则表达式或拆分的情况下将字符串转换为 perl 中的哈希
- python - 在 tkinter python 中使用回车键
- javascript - JavaScript array.filter() 和迭代器
- html - 覆盖 html/css 中的图像