15 Star 112 Fork 26

SimbaJS/love-u.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
Wilhelm z 提交于 2022-01-27 09:24 . msg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="/dist/iloveu.js"></script>
<script>
// let arr1 = [{
// index: 0, label: 'aaa', score: 10,
// }, {
// index: 1, label: 'bbb', score: 7,
// }, {
// index: 2, label: 'ccc', score: 5,
// }, {
// index: 3, label: 'ddd', score: 10.00001,
// }, {
// index: 4, label: 'eee', score: 5.00001,
// },]
// let arr2 = [10, 10.00001, 5.00001]
// 期待数组
// let arr1 = [{
// index: 1, label: 'bbb', score: 7,
// }, {
// index: 2, label: 'ccc', score: 5,
// },]
// console.log(arr2.map(r => (arr1.find(rr => rr.score === r))));
// let arr = [1, 2, 3]
// let arr2 = _.find(arr, function (item, i) {
// return item * 2
// })
// console.log(arr2); // [2, 4, 6]
// console.log(_.parseTime('2021-12-03T08:29:29.000Z')); // [1, 2]
// console.log(_.getCurrentWeekDates());
// console.log(_.getCurrentWeekDatesYMD());
// console.log(_.getCurrentWeekRange());
// console.log(_.getCurrentWeekRange2());
// let run = _.compose(function (aa) {
// console.log(1111);
// return 1 + aa
// }, function (aa) {
// console.log(2222);
// return 2 + aa
// }, function (aa) {
// console.log(3333);
// return 3 + aa
// })
// console.log(run(10));
// console.log(_.getCurrentWeekDates('2021-11-18'));
// console.log(_.getCurrentWeekDatesYMD('2021-11-18'));
// console.log(_.getCurrentWeekRange('2021-11-18'));
// console.log(_.getCurrentWeekRange2('2021-11-18'));
// let arr = [1, 2, 3, 4, 2, 6, 7]
// let arr1 = 7
// c = (arr, i) => { return arr += i }
// console.log(_.reverse(arr))
// console.log(getQueryParams('https://fanyi.baidu.com/translate?aldtype=16047&query=&keyfrom=baidu&smartresult=dict&lang=auto2zh#glg/zh/panme'))
// let arr=[1,2,3,4,5,6,7]
// console.log(join(arr))
// let arr = [1, 2, 3, 4, 2, 6, 7]
// let arr1 = 2
// let arr2 = 2
// console.log(fn(arr,arr2))
// console.log(insertAt(arr,arr1,arr2))
console.log(pick({a:1,b:2},['a']))
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/shendusimba/love-u.git
[email protected]:shendusimba/love-u.git
shendusimba
love-u
love-u.js
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385