在IE中没有加载Javascript脚本(sharepoint) [英] Javascript script(sharepoint) is not loading in IE

查看:97
本文介绍了在IE中没有加载Javascript脚本(sharepoint)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


   我有一些代码可以在Chrome中运行正常。但IE无法正常工作。我需要一些帮助 


 我的代码:


        $('#ItmNoteDesc1')。text($(item.Detailed_x0020_Description).text());


谢谢&此致,


Surakshith




Surakshith

解决方案

您好,


使用开发人员工具确认正确加载了jQuery库。





并尝试在SharePoint js库之后执行库已加载。

< script type =" text / javascript" SRC =" HTTPS://code.jquery.com/jquery-1.12.4.js">< /脚本> 
< script type =" text / javascript">
ExecuteOrDelayUntilScriptLoaded(CustomFun," sp.js");
函数CustomFun(){
//自定义逻辑
}

/ script>

如果存在问题,尝试在下面的脚本和调试中插入断点。



('#ItmNoteDesc1')。text(


(item.Detailed_x0020_Description)的.text());


https://technet.microsoft。 com / zh-CN / windows / gg699336(v = vs.60)


最好的问候,


Lee


Hi,

   I have some piece of code which is working fine in Chrome.But IE it is not working.I need some help 

 My code:

       $('#ItmNoteDesc1').text($(item.Detailed_x0020_Description).text());

Thanks & Regards,

Surakshith


Surakshith

解决方案

Hi,

Use developer tool to confirm the jQuery library is loaded correctly.


And try to execute the library after SharePoint js library loaded.

<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script type="text/javascript">
        ExecuteOrDelayUntilScriptLoaded(CustomFun, "sp.js");
        function CustomFun() {
//custom logic
}

/script>

If issue exists, try to insert break-point to below script and debug.


('#ItmNoteDesc1').text(


(item.Detailed_x0020_Description).text());

https://technet.microsoft.com/en-us/windows/gg699336(v=vs.60)

Best Regards,

Lee


这篇关于在IE中没有加载Javascript脚本(sharepoint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆