Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
I was reading my bootstrap.min.js and I can't understanding what this line actually doing here [f = e.attr("data-target");f||(f = e.attr("href")]
function a(e){..........}
var e = a(this);  
var f = e.attr("data-target");f||(f = e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));

what this line actually doing here f||(f = e.attr("href"), I don't think it is only saying "true" or "false" if it is shorthand notation then pzl.. explain

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

This means that there is some link in data-target attribute's value, If it is not there then It will replace the href attibute's value accoding to the regex pattern.

about 4 years ago · Juan Pablo Isaza Relatório

0

This is a packaged library files, that means all its variables functions are renamed with 1 letter or 2 to optimize the code for compilers

Also alot of instruction are shortened so much, line breacks & spaces are removed

So no human can understand this kind of code without wasting much efforts

If you'd really like to read a library's code, just visit its github repo, or read the non-optimized files , like bootstrap.js not the bootstrap.min.js

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda