经典开场 // Layui ;! function (win) { var Lay = function () { this.v = '2.5.5'; }; win.layui = new Lay(); }(window); // Jquery (function (global, factory) ...
分类:
其他好文 时间:
2021-03-02 11:54:07
阅读次数:
0
在使用selenium模拟操作时经常遇到一些使用原始方法解决不了的问题。 click失效问题 曾经多次遇到元素click()失败的情况,经典的例子就是某网站的登录框。 一般遇到click失败时我的一般处理方法是改用send_keys(Keys.ENTER),直接用发回车键,简单粗暴。 但是某网站的登 ...
分类:
其他好文 时间:
2021-03-02 11:53:31
阅读次数:
0
var str = 'node.js'; var fs = require('fs'); fs.writeFile('./a.txt',str,function(err){ if(err==null){ console.log('恭喜你,写入成功') }else{ console.log(err); ...
分类:
Web程序 时间:
2021-03-02 11:49:45
阅读次数:
0
1)注册分页插件(@Configuration) @Bean public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); } 2) 使用 @Test void testPage( ...
分类:
其他好文 时间:
2021-03-01 14:15:10
阅读次数:
0
一个页面中多个window.onload = function(){}冲突问题解决思路 一个页面中多个window.onload = function(){}冲突问题解决思路 参考文章: (1)一个页面中多个window.onload = function(){}冲突问题解决思路 (2)https: ...
// 第一种写法 $(document).ready(function() { }); // 第二种写法 $().ready(function() { }); // 第三种写法 $(function() { }); jQuery入口函数与window.onload的对比 JavaScript的入口函 ...
分类:
其他好文 时间:
2021-03-01 13:46:55
阅读次数:
0
var le = [{name:"js"}, {name:"css"}, {name:"python"} ]; var index = le.findIndex(function(item){ return item.name== "css"; }); console.log(index);1 ...
分类:
编程语言 时间:
2021-03-01 13:46:39
阅读次数:
0
模块化结合typescript - 泛型改造 // 为函数添加泛型 function useURLLoader<T>(url: string) { const result = ref<T | null>(null) // 在应用中的使用,可以定义不同的数据类型 interface DogResul ...
分类:
其他好文 时间:
2021-03-01 13:32:50
阅读次数:
0
主要依靠一个js文件 ,引入到content页面 $(function () { $.get("header.html",function (data) { $("#header").html(data); }); $.get("footer.html",function (data) { $("# ...
分类:
Web程序 时间:
2021-03-01 13:11:10
阅读次数:
0
onClickRow: function (index) { var editor = feeTable.datagrid('getEditors', index); editor[0].target.next('span').find('input').blur(function () { fee ...
分类:
其他好文 时间:
2021-02-27 13:33:15
阅读次数:
0