V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  leconio  ›  全部回复第 19 页 / 共 34 页
回复总数  680
1 ... 15  16  17  18  19  20  21  22  23  24 ... 34  
2024 年 5 月 15 日
回复了 dvbs2000 创建的主题 生活 你们有什么爱不释手睡觉都恨不得抱着的东西
2024 年 5 月 15 日
回复了 egrcc 创建的主题 旅行 成都租车被坑经历
只认一嗨和神舟吧,并且保险买齐。
===
大前年五一租车去新疆,快到到特克斯时候,轮胎偏磨了,车子异响。由于第二天要上高原,必须要修车。没有指定维修点和 4s 店,一嗨的服务就挺好的,让我们去就近维修站自行维修,开好票就行,回来时候全给报销了(虽然有点慢)。
小时候,我们班玩积木的往往是考的最好的,也是最开朗的。
2024 年 5 月 15 日
回复了 ColdBird 创建的主题 买买买 马上 618 了,可以分享一下你的购物列表吗?
即热饮水机,冷热都能出的那种。之前图便宜买个一个,这玩意真的好用,现在坏了,换个高端的。
2024 年 5 月 14 日
回复了 microka 创建的主题 问与答 AList 服务端有多个公网 IP,如何实现多 wan 访问?
抱歉我没看描述,忽略上面
2024 年 5 月 14 日
回复了 microka 创建的主题 问与答 AList 服务端有多个公网 IP,如何实现多 wan 访问?
我想到两个办法。
1 Nginx 做负载均衡。
upstream backend {
server 192.168.1.1:8080;
server 192.168.1.2:8080;
}
2 DNS 轮训。写个脚本不停地更新域名到这两个 ip ,或者根据地区解析不同的 ip
2024 年 5 月 11 日
回复了 amosannn 创建的主题 NAS 为什么国内硬件厂能堆硬件,但做不出大厂的软件体验?
软件开发周期大于倒闭周期
安卓好像没有能激发亮度的 HDR
写写画画,看看奈飞,iPad 好很多
对于开发者,安卓生态圈要好很多
2024 年 5 月 5 日
回复了 wheretogo 创建的主题 OpenAI 24.5.5 开始突然 SwitchyOmega 必须全局代理才能使用 Chatgpt
geosite 抄下最新的地址
支付宝我记得欠费也可以冲
2024 年 5 月 3 日
回复了 lurui45 创建的主题 生活 关于日常药店买药的一些想法
药店刷社保,感觉像零元购,(其实那也是工资一部分呀)
2024 年 5 月 3 日
回复了 xiaopanzi 创建的主题 NAS 群晖远程唤醒方案
或者买个开机棒,那个就是发魔法包的
2024 年 5 月 3 日
回复了 xiaopanzi 创建的主题 NAS 群晖远程唤醒方案
使用场景是啥,群晖一直开着不就行了吗。我的 220 开一次机要好久好久。
2024 年 4 月 30 日
回复了 waiaan 创建的主题 JavaScript 这段 if...else 有优雅的写法吗?
const sortStrategies = {
descending: (prop) => (a, b) => b[prop] - a[prop],
ascending: (prop) => (a, b) => a[prop] - b[prop]
};

const sortCommands = {
thisYearIncome: {
descending: () => sortStrategies.descending('thisYearIncome'),
ascending: () => sortStrategies.ascending('thisYearIncome')
},
lastYearIncome: {
descending: () => sortStrategies.descending('lastYearIncome'),
ascending: () => sortStrategies.ascending('lastYearIncome')
},
rate: {
descending: () => sortStrategies.descending('rate'),
ascending: () => sortStrategies.ascending('rate')
}
};

function createSortCommand(order, prop) {
return sortCommands[prop][order]();
}

const data = [
{ thisYearIncome: 5000, lastYearIncome: 4000, rate: 0.25 },
{ thisYearIncome: 8000, lastYearIncome: 6000, rate: 0.33 },
{ thisYearIncome: 3000, lastYearIncome: 2000, rate: 0.5 },
{ thisYearIncome: 6000, lastYearIncome: 5000, rate: 0.2 }
];

function onSortChange(order, prop) {
const sortCommand = createSortCommand(order, prop);
fetchData(sortCommand);
}

function fetchData(sortCommand) {
const sortedData = data.sort(sortCommand);

console.log('Sorted Data:');
sortedData.forEach((item) => {
console.log(`This Year Income: ${item.thisYearIncome}, Last Year Income: ${item.lastYearIncome}, Rate: ${item.rate}`);
});
}

console.log('Sorting by This Year Income (Descending):');
onSortChange('descending', 'thisYearIncome');

console.log('\nSorting by Last Year Income (Ascending):');
onSortChange('ascending', 'lastYearIncome');

console.log('\nSorting by Rate (Descending):');
onSortChange('descending', 'rate');
这文笔,不去写本子可惜了
2024 年 4 月 30 日
回复了 UIXX 创建的主题 问与答 2024 年中买什么平板好
生态上还是 iPad 好。我串流游戏狗选择联想 y700 。
对 HDR 有要求无脑 iPad 吧,安卓调色都怪怪的
1 ... 15  16  17  18  19  20  21  22  23  24 ... 34  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1892 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 00:11 · PVG 08:11 · LAX 16:11 · JFK 19:11
♥ Do have faith in what you're doing.