码迷,mamicode.com
首页 >  
搜索关键字:下拉菜单 sel function    ( 68645个结果
js多字段排序
function sortByProps(item1, item2, obj) { // 多字段排序 //asc升序 desc 降序 var props = []; if (obj) { props.push(obj); } var cps = [], // 存储排序属性比较结果。 // 如果未指定 ...
分类:编程语言   时间:2021-03-17 14:36:47    阅读次数:0
call、bind、apply的实现
call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:移动开发   时间:2021-03-17 14:28:08    阅读次数:0
每天一道面试题——请实现add(1,2)(3)【二】
前言 考点: 函数柯里化 内容 题目 请实现add(1,2)(3) 答案 function add (...args) { return args.reduce((a, b) => a + b) } ? function currying (fn) { let args = [] return fu ...
分类:其他好文   时间:2021-03-17 14:18:59    阅读次数:0
文件属性介绍
(1)17347083 -rw-r--r--. 1 root root 384 Sep 1 2020 /etc/hosts (2)17347083 inode号 (3) - 文件类型 (4) rw-r--r-- 文件权限 (5) . .与selinux有关 (6) 1 文件硬链接数量 (7)root ...
分类:其他好文   时间:2021-03-17 14:17:18    阅读次数:0
加载图片优化
我们可以将图片的加载写成一个promise,一旦加载完成,promise的状态就发生变化 const preloadImage = function (path) { return new Promise(function (resolve, reject) { const image = new ...
分类:其他好文   时间:2021-03-16 14:11:15    阅读次数:0
Js 对象之间的继承及原型链查找分析
Js 对象之间的继承 构造函数的属性继承 ①对象拷贝 :使用for....in循环继承父对象属性 <script> var student1 = { name : "lisi", id : 1213, meaasge : function(){ console.log(name + "," + id ...
分类:Web程序   时间:2021-03-16 14:01:27    阅读次数:0
SQL中使用年月日来进行分组
SQL按年月日进行分组 select count(project_name), create_at from table_a group by date_format(create_at, '%Y%m%d'); ...
分类:数据库   时间:2021-03-16 13:54:07    阅读次数:0
jQuery学习
基础 基础语法 $(selector).action()$ 文档就绪事件 <script> $(document).ready(function(){ // 开始写 jQuery 代码... }); //简洁写法 $(function(){ // 开始写 JQuery 代码 }) </script> ...
分类:Web程序   时间:2021-03-16 13:49:39    阅读次数:0
数据结构-字典
1.概念 字典采用键值对的方式来实现,可以非常方便的通过键(key)来搜索对应的值(value)。 2.封装字典 // 创建字典的构造函数 function Dictionay() { // 字典属性 this.items = {} // 在字典中添加键值对 Dictionay.prototype. ...
分类:其他好文   时间:2021-03-16 13:31:19    阅读次数:0
odoo14在列表视图里添加自定义按钮
static/js/xxxx.js 这里定义按钮odoo.define('add.tree.view.buttons', function (require) { "use strict"; var core = require('web.core'); var ListController = r ...
分类:其他好文   时间:2021-03-16 13:30:43    阅读次数:0
68645条   上一页 1 ... 51 52 53 54 55 ... 6865 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!