V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  rabbbit  ›  全部回复第 66 页 / 共 120 页
回复总数  2395
1 ... 62  63  64  65  66  67  68  69  70  71 ... 120  
2020-04-11 20:02:04 +08:00
回复了 opopoipipip 创建的主题 上海 碰到一个奇葩的房东
额,出租屋水龙头没必要买那么好的,淘宝买个几十块的够用好几年的.
要不你把那个坏的流着,走时候给他装回去.好的带走?
2020-04-11 19:56:31 +08:00
回复了 static97 创建的主题 求职 19 专科毕业找工作自闭了
别急,本科的也一样找不到.
2020-04-11 19:33:06 +08:00
回复了 Taya 创建的主题 求职 211 大学软件工程 20 届毕业生找实习,经历有点杂求助下!
毕业了就不能投实习了,只能投社招的岗位.
不过还好,看学历是个大佬,找工作应该没问题.
只是问题是目标岗位是啥,没想过以后想从事哪个岗位吗?
@lithbitren 空格是怎么打出来的?
2
interface Student {
...name: string,
...score: number
}
function groupBy(students: Student[]) {
...const group: { [propName: string]: Student[] } = {};
...for (let i of students) {
......const grade = getGrade(i.score);
......if (!group[grade]) {
.........group[grade] = []
......}
......group[grade].push(i)
...}
...return group;
}
1
interface TreeNode {
...id: String,
...label: String,
...children?: TreeNode[]
}

function findNodeById(root: TreeNode, id: string): TreeNode {
...if (root.id === id) {
......return root;
...}
...
...if (root.children) {
......for (let i of root.children) {
.........const child = findNodeById(i, id);
.........if (child) {
............return child
.........}
......}
...} else {
... return null;
...}
}

console.assert(findNodeById(tree, '1').label === 'first', '1')
console.assert(findNodeById(tree, '2').label === 'second', '2')
console.assert(findNodeById(tree, '3').label === 'third', '3')
console.assert(findNodeById(tree, '4').label === 'fourth', '4')
console.assert(findNodeById(tree, '5').label === 'fifth', '5')
2020-04-09 17:18:22 +08:00
回复了 simon888888 创建的主题 问与答 休学还是读书
@simon888888 估计是忽悠了,你可以问问老板给她开多少, 再跟她对比下互联网 大厂的 UI 能开多少,用 money 把她忽悠回来.学视觉传达以后去拍电影或者 UI UX 啥的不比在画室里 8246 强多了.
2020-04-09 17:04:12 +08:00
回复了 simon888888 创建的主题 问与答 休学还是读书
另外我以前高考在画班集训时候的作息是 8 ~ 24 ,每周 6 天.真的不建议去这种地方当老师...
2020-04-09 16:59:53 +08:00
回复了 simon888888 创建的主题 问与答 休学还是读书
广美的?
画班助教一般都赚不到什么钱,非纯艺术(例如油画 雕塑系),或者以后不打算往美术高考培训走,不建议去浪费时间.
2020-04-09 16:53:05 +08:00
回复了 TomeWong 创建的主题 程序员 Electron 创建子进程处理 上传文件的 MD5 计算和上传逻辑
可以用 child_process.fork 配合 send 和 on("message")
2020-04-09 16:42:55 +08:00
回复了 Ritter 创建的主题 Vue.js 大佬们 vue 这段动态渲染的代码为什么不行
const tipComponent = new tipComponentConstruct().$mount();
tipComponent.tableData[0].data = 'xxx'
console.log(tipComponent.$el.outerHTML) // 漏了一行
tipComponent.$nextTick(() => {
...const html = tipComponent.$el.outerHTML
...console.log(html)
})
2020-04-09 16:40:46 +08:00
回复了 Ritter 创建的主题 Vue.js 大佬们 vue 这段动态渲染的代码为什么不行
@Ritter
element-table 里面有默认值,他会先用默认值去渲染 Dom.
你可以试下下面这个例子, console 输出的还是默认值:

const tipComponent = new tipComponentConstruct().$mount();
tipComponent.tableData[0].data = 'xxx' // 注意这里
tipComponent.$nextTick(() => {
...const html = tipComponent.$el.outerHTML
...console.log(html)
})

至于取 nextTick 里的值, 可以用 watch

Vue.extend({
...data() {
......return {
.........html: null
......}
...}
...watch: {
......html(value) {console.log(value)}
...}
})
a.$nextTick(() => {
...tipComponent.html = a.$el.outerHTML
})
2020-04-09 16:16:36 +08:00
回复了 Ritter 创建的主题 Vue.js 大佬们 vue 这段动态渲染的代码为什么不行
@Ritter 看不懂,写个完整点的例子发过来看看.
2020-04-09 16:02:14 +08:00
回复了 Ritter 创建的主题 Vue.js 大佬们 vue 这段动态渲染的代码为什么不行
直接取当然没变化, Vue 不会立刻修改 Dom.
2020-04-09 16:00:23 +08:00
回复了 Ritter 创建的主题 Vue.js 大佬们 vue 这段动态渲染的代码为什么不行
tipComponent.$nextTick(() => {
...const html = tipComponent.$el.outerHTML
...console.log(html)
})
sql 初学者的想法,可能有错误:
1 不要拿学号和姓名当主键.
2 给学号设置 UNIQUE
3 姓名可能会重复吧,不建议 UNIQUE
2020-04-07 20:31:30 +08:00
回复了 zhaiblog 创建的主题 分享发现 Github Pages 在维护吗?
已恢复
2020-04-07 20:21:16 +08:00
回复了 richangfan 创建的主题 问与答 你们找到工作了吗?找了多长时间?
找了 6 个月,本来年前有几家,结果有点事又耽误了.
期间学了 node express puppeteer typescript sequelize ...
造了些没啥用的轮子.
都快学成全栈了🐶
2020-04-07 00:03:33 +08:00
回复了 zzw1998 创建的主题 程序员 Element UI 已经正式被废弃了吗
vue 3.0 要大改, element ui 废了....
有点想去 react 那边了.
2020-04-03 00:43:42 +08:00
回复了 lisisi 创建的主题 JavaScript js 混合拼接应该用 () 还是 String() 方法处理计算优先级?
哪个符号优先级高就算哪个

'foo' + 3 * 3 // "foo9"

然后不同类型相加会自动转换类型,就全乱套了.

'a' + 1 // a1
'a' + true // "atrue"
'a' + null // "anull"
'a' + undefined // "aundefined"

1 + true // 2
1 + undefined // NaN
1 + null // 1

[] + 1// "1"
[] + 'a' // "a"

{} + 1 // 1

({}) + 1 // "[object Object]1"

所以最好用模板字符串,而不是加号
1 ... 62  63  64  65  66  67  68  69  70  71 ... 120  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1993 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 15:45 · PVG 23:45 · LAX 08:45 · JFK 11:45
Developed with CodeLauncher
♥ Do have faith in what you're doing.