Pandora417
Pandora417
全部文章
分类
刷题(1)
题解(14)
归档
标签
去牛客网
登录
/
注册
Pandora417的博客
全部文章
(共12篇)
题解 | #双色球机选一注#
randomFn(); function randomFn() { return selectBall('red', 6) + '|' + selectBall('blue', 1)}function selectBall(color, n){ var wrap = document.q...
js+html+css
2021-07-21
1
519
题解 | #表格排序#
function sort(type, order) { var index = type==='id' ? 0 : (type==='price' ? 1 : 2) var jsList = document.querySelector('#jsList') var trList...
js+html+css
2021-07-21
0
361
题解 | #选择组件#
function CheckGroup(renderTo, options, isMultiple) { var that = this; that.renderTo = renderTo; that.options = options; that.isMultiple = ...
js+html+css
2021-07-13
1
390
题解 | #设置标签#
var tagInput = { isInited: false, init: init, bindEvent: bindEvent, addTag: addTag, removeTag: removeTag};tagInput.init(); function ini...
js+html+css
2021-07-13
0
382
题解 | #文字输出#
function output(str) { //删除原有结点 let content = document.querySelector('.content') let jsBlink = document.querySelector('#jsBlink') let chil...
js+html+css
2021-07-09
0
413
题解 | #分页#
function Pagination(container, total, current) { this.total = total; this.current = current; this.html = html; this.val = val; this.el ...
js+html+css
2021-07-09
6
526
题解 | #智能提示#
function suggest(items) { let input = document.querySelector('.js-input').value.trim(); let div = document.querySelector('.js-suggest'); let ...
js+html+css
2021-07-09
0
421
题解 | #模块#
function createModule(str1, str2) { return { greeting: str1, name: str2, sayIt: function() { return this.greeting +...
js+html+css
2021-07-08
0
381
题解 | #获取 url 参数#
function getUrlParam(sUrl, sKey) { let params = sUrl.split('?')[1].split('#')[0].split("&") let obj = {} let res = [] params...
js+html+css
2021-07-08
0
292
题解 | #判断是否符合 USD 格式#
function isUSD(str) { let reg = /^\/ return reg.test(str)}
js+html+css
2021-07-07
0
391
首页
上一页
1
2
下一页
末页