2020-08-21 Fuente del tema: http://www.h-camel.com/index.html
[html] ¿Dime qué pasará si se hace clic en un enlace href = "" (vacío)?
La actuación es: refresca la página
Generalmente, cuando la etiqueta a se utiliza como botón, el valor href está vacío cuando no hay necesidad de saltar.
Si no necesita saltar, debe establecer el valor de href: <a href="javascript:void(0);">链接</a>
[css] ¿Cómo aprendiste css? Habla sobre tu método de aprendizaje
Leer más escribir más
[js] Escribe un método para implementar la consulta de ruta de árbol [código]
const binaryTree = {
id: 1,
left: {
id: 2,
left: {
id: 4,
left: {
id: 7,
left: null,
right: null
},
right: {
id: 5,
left: null,
right: null
}
},
right: {
id: 8,
left: null,
right: null
}
},
right: {
id: 3,
left: null,
right: {
id: 9,
left: null,
right: null
}
}
}
// 根据给定值,查找叶子节点(返回叶子节点和路径)
function searchLeaves (tree, key, pathList) { // 此方法只有两种返回值(Array、null)
if (!tree) return null
// 此方法是递归调用,考虑到首次不传pathList参数,此处做个判断
if (!pathList) pathList = []
pathList.push(tree.id)
if (tree.id === key) return pathList
let found
found = this.searchLeaves(tree.left, key, pathList)
if (found) return found
found = this.searchLeaves(tree.right, key, pathList)
if (found) return found
//执行到此处,说明当前节点的子树没找到,将当前节点pop出去
pathList.pop()
return found
}
let searchId = 5
let result = searchLeaves(binaryTree,searchId)
console.log(result)
// 输出 [1,2,4,5]
Transferencia de https://blog.csdn.net/ulanlds/article/details/108463394
Otro artículo para implementar la búsqueda de árbol binario https://blog.csdn.net/weixin_36185028/article/details/53967888
[Soft Skills] Cuénteme sobre su comprensión de la entrega de un extremo a otro
La entrega de extremo a extremo en realidad se refiere a la entrega del contrato de extremo a extremo, con el contrato como línea principal, incluido todo el proceso de inicio del proyecto, licitación, firma del contrato, fabricación / entrega / preparación del proyecto, implementación del proyecto y cierre del contrato.
Desmitificar: ¿Qué es exactamente la entrega de extremo a extremo de Huawei? https://www.jianshu.com/p/f19bf8444f0b