问题: 在开发中会遇到动态添加 script 标签的情况. 代码如下: var oScript = document.createElement('script'); oScript.src = 'demo_address'; document.head.appendChild(oScript); 但是在 IE8 以下会报如下错误: SCRIPT5007: Unable to get value of the property 'appendChild': object is null or u…
网站后台用了JQuery Validate框架,版本是jQuery Validation Plugin 1.8.1 因为用的时间比较久了,一直没有更新新版本. 最近公司信息录入员有调整,没有IE11浏览器,使用IE8报错,报错位置如下: 第688行报错:name为null. 找了好多资料,最终找到合适的解决方案如下,在jquery.validate.js文件中找到elements方法,原来注释掉了这段代码: if ( this.name in rulesCache || !validator.o…
每次做各种form表单时,首先要注意的是初始化,但是刚开始若没有仔细看文档,则会自己写个方法将数据设置为空,但是这样就会出现一个问题,表单内存在各种验证,假如是一个弹框内有form表单,弹框出现就执行上述代码,可能会出现表单验证的错误提示仍然保留的情况. element UI 官方文档提供了一个resetFields()的方法 this.$refs[formName].resetFields() 不仅可以帮你初始化数据,还可以将验证提示消除!!! 但是在使用时踩了一些坑, 编辑和新增使用了同一个…
因为项目要表单验证,所以特意去找了jquery.validate这个应该是jquery官方团队出品的表单验证插件. 实际应用时,却在IE8调试时碰到了问题. 从jquery.validate官网下载了压缩包后,用demo中的页面在IE8下并不会报错 而我应用到实际页面中去却会在IE8下报错.如下图: 对比了demo中的页面后,略尴尬的发现,demo中引用的是jquery.validate.js,而我因为要应用到生产环境中,所以下意识的引用了其中的jquery.validate.min.js,也即…
最近公司做的项目要求兼容到IE8,结果在页面调试的时候出了个bug,在IE8上面一直报错$未定义,或者jQuery未定义,导致页面上面写的jQuery全部失效,在Chrome浏览器没有任何问题.很是头疼,查了半天资料页面也没找到,降低jQuery的版本(用的1.10.2,正常应该是兼容IE8的)也不行.由原因找结果,$未定义,也就是jQuery没有引进了,那么这个问题只能出现在script标签这里.原来是type的值写错了,下面详细说一下.1.代码如下,这个在Chrome下面是正常弹出你好,没有…
先介绍下这个问题的由来: 上午其他项目组人员在rtx上问,求帮忙解决ie8兼容性问题. 然后快到饭点,知道这个bug肯定不是那么好解决,肯定不能耽误吃饭时间. 果断说,下午来弄. 下午3点开始去看这个bug. 具体问题就是:点击修改按钮报了缺少':',186行错误. 看了下他的代码186行,是空白行,上下行,也并没有:符号,这错误报的有点看不懂了. 不过这才有意思嘛,两下三下就解决的bug,干起来多没劲. IE8真的很蛋疼,调试起来特别麻烦.调试模式开启,找到报错地方,‘treeselector…
我是在SpringBoot项目使用Thymeleaf作为模板引擎时报的错误 controller代码非常简单,如下所示: @RequestMapping("/abc") public String hello(Model model) { model.addAttribute("msg","你好"); return "success"; } 前端success.html也很简单,代码如下: <!DOCTYPE html&…
在IE7中 var conentDiv = document.createElement("div"); document .body .appendChild(conentDiv); document .appendChild(conentDiv); 都不会报错,但是在IE11中 document .appendChild(conentDiv);会报错:javascript runtime error:HierarchyRequestError 由于 div是document .bo…
报错代码: 这个函数运行时 function download(){ var element = $("#demo"); //jquery 获取元素 //这里将会报错 html2canvas(element).then( (canvas)=>{ }) } 报错:Uncaught (in promise) Provided element is not within a Document 报错原因:    html2canvas(element).then() 中 html2can…
1.现象 在执行脚本时,有时候引用一些元素对象会抛出如下异常 org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document 2.报错原因 官方给出解释如下: The element has been deleted entirely.The element is no longer attached to the D…
今天在调试脚本时,遇到如下报错: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document 按字面表达的意思大概是,所引用的元素已过时,不再依附于当前页面.通常情况下,这是因为页面进行了刷新或跳转, 下面说下我的情况: 我进入页面dom结构,查看发现原来table表格的id实时自增,即id=id++;这种模式,坑…
maven项目里面的web.xml开头约束是这样的 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java…
在某场景中一句简单的js: $("#changeOption").text("增加"); 在 IE8 下面报错:'意外地调用了方法或属性访问' 改成:$("#changeOption").html("增加"); 报同样的错. 改成:document.getElementById('changeOption').innerText="增加"; 同样报错:"未知的运行时错误" 最后改成:$(…
登录框由于js限制,定位到元素后无法sendkey ,sendky报错如下: selenium.common.exceptions.WebDriverException: Message: unknown error: cannot focus element (Session info: chrome=67.0.3396.87) (Driver info: chromedriver=2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab),p…
启动项目报错 2018-02-26 17:09:51,535 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testTreeDao' defined in file [/Users/jds/Docu…
背景:在eclipse项目中,经常会遇到xml文件提示找不到.xsd文件的情况.很有必要弄清xsd文件的加载过程! 1 解决过程 dubbo-demo-provider导入eclipse后dubbox-demo-provider.xml报错详情: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be…
在使用queryselector获取一个dom元素,编译时却报错说property 'style' does not exist on type 'element'. 原因:这是typescript的类型检查导致的,需要在querySelector方法前面加个类型断言. let frameContainObj = document.getElementById("model_view_container") let iframeObj= <HTMLElement>frame…
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" updateCheck="false"> 上述行报错如下: Multiple annotations found at this line: - cvc-elt.1: Cannot fi…
这两天要在阿里云日志中操作UI,以输入关键字搜索日志. 在send_keys时报错element not interactable. iframe 第一个问题是iframe,通过切换iframe解决: driver.switch_to.frame(0) # 索引从0开始 span 第二个问题是span. F12查看html长这样: ①find_element(pre).click 有效,说明iframe切换成功了 ②find_element(span2).send_keys报错 element…
现场: OS  winserver 2008 IE8.0.6001.18702   JS报错,不能登陆 OS  XP   IE8.0.6001.18702CO     JS报错,不能登陆 公司测试: OS  WIN7  IE8.0.7601.17514  正常. OS  winserver 2008 R2  IE8.0.6001.19621 一开始不能登陆,设置后正常. OS  winserver 2003 IE8.0.6001.18702 与现场一样,一开始不能登陆,设置后正常. 两次设置相同…
JS function document.onclick(){}报错Syntax error on token "function", delete this token function document.onclick() //任意点击时关闭该控件 //ie6的情况可以由下面的切换焦点处理代替 {    with(window.event)   { if (srcElement != outObject && srcElement != outButton)    …
解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element 'beans'.Referenced file contains errors (http://www.springframework.org/schema/aop/spring-aop-3.1.xsd). 原因是无法从网络上读取到相应的schema文件,但实际上在浏览器中是可以访问的.却一直在eclipse中显示红叉,当然,并不影响编译打包. 查看所依赖…
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.s…
用到了 select2 组件来多选收件人,用搜狗浏览器(6.2版高速模式)在执行到如下这句时报错(Uncaught InvalidStateError: Failed to read the 'selectionDirection' property from 'HTMLInputElement': The input element's type ('hidden') does not support selection.),6.3版高速和兼容模式都没问题. var recipients =…
jquery1.8 在IE8 下面报错: 对象不支持此属性或方法 调试发现是下面这一行报错: 在IE8下面报错,在chrome和firefox都是好的. 实在找不到原因,最后把源码改成下面这样: 没有报错了. 更好的方法,应该可以先 判断 elem 对象是否有 getAttribute() 这个函数,如果没有就是有 eleem["id"] 来代替.…
之前使用selenium-webdriver来写UI的自动化脚本,发现有一个元素一直无法定位,查看其源码,如下 利用xpathChecker验证了xpath语句的是正确的,但是控制台一直报错: no such element: Unable to locate element: {"method":"xpath","selector":"xpath"} 后面仔细看了一下,我定位的页面重新开了一个iframe,所以在百度上查找了…
SAP MM ME29N 试图取消审批报错 - Document has already been outputed(function not possible) - 今天收到用户的一个问题,说他试图使用ME29N去取消采购订单的审批,系统报错 :Document has already been outputted(function not possible). 项目上,完成审批的采购订单是不允许修改的. 经过研究,解决办法是:ME22N,修改这个PO,进入message界面,然后复制之前的o…
安卓工作室 android studio 汉化后,报错. 设置界面打不开. Android studio has been sinified and reported wrong.The setup interface cannot be opened. 安卓工作室 android studio 版本 2.3.3 Android studio version 2.3.3 汉化包版本 AndroidStudio_v2.0.0.20_resources_cn-v0.2-20170414.jar Lo…
使用python的suds包调用webservice服务接口,报错:AttributeError: 'Document' object has no attribute 'set' 调用服务接口代码: #coding=utf-8 from suds.client import Client client = Client('http://port.patentstar.cn/bns/PtDataSvc.asmx?wsdl') print client pt = client.factory.cr…
pom文件报错:The matching wildcard is strict, but no declaration can be found for  element 'dubbo:service'. 解决办法: 找到dubbo的jar包,解压后在META-INF文件夹下找到dubbo.xsd 在eclipse中点击windows-->preferrence-->xml-->xmlcatalog 选择add-->catalog entry  -->file system…