码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
(节流)js防止重复频繁点击或者点击过快方法
1.方法一:用定时器定时,没跑完定时器,点击按钮无效 <script> var isClick = true; $("button").on("click",function(){ if(isClick) { isClick = false; //事件 console.log('我被点击了'); / ...
分类:Web程序   时间:2021-03-02 11:55:14    阅读次数:0
PHP 拆分文字,将一串文字拆分成一个一个的文字
/* * 处理封面标题 文字竖排 * */ function get_pdf_title_cl($str){ if($str){ preg_match_all("/[0-9]{1}/",$str,$arrNum);/*检测数字数量*/ preg_match_all("/[a-zA-Z]{1}/",$ ...
分类:Web程序   时间:2021-03-02 11:54:38    阅读次数:0
Layui 源码浅读(模块加载原理)
经典开场 // 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
node.js 写文件
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
一个页面中多个window.onload = function(){}冲突问题解决思路
一个页面中多个window.onload = function(){}冲突问题解决思路 一个页面中多个window.onload = function(){}冲突问题解决思路 参考文章: (1)一个页面中多个window.onload = function(){}冲突问题解决思路 (2)https: ...
分类:Windows程序   时间:2021-03-01 13:49:42    阅读次数:0
jq入口函数
// 第一种写法 $(document).ready(function() { }); // 第二种写法 $().ready(function() { }); // 第三种写法 $(function() { }); jQuery入口函数与window.onload的对比 JavaScript的入口函 ...
分类:其他好文   时间:2021-03-01 13:46:55    阅读次数:0
js基础 数组findIndex
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
初始Vue3.0(9)——模块-泛型改造
模块化结合typescript - 泛型改造 // 为函数添加泛型 function useURLLoader<T>(url: string) { const result = ref<T | null>(null) // 在应用中的使用,可以定义不同的数据类型 interface DogResul ...
分类:其他好文   时间:2021-03-01 13:32:50    阅读次数:0
Html 实现静态页面分离,和互相调用VUE元素方法
主要依靠一个js文件 ,引入到content页面 $(function () { $.get("header.html",function (data) { $("#header").html(data); }); $.get("footer.html",function (data) { $("# ...
分类:Web程序   时间:2021-03-01 13:11:10    阅读次数:0
easyui datagrid 中的numberbox添加blur事件
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
54714条   上一页 1 ... 40 41 42 43 44 ... 5472 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!