// jQuery
$(document).ready(function() {
// code
})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var el = $('[data-accept]'); | |
var disableEl = el.attr('data-accept-disable-id') | |
function toggleDisable(){ | |
if ( el.is(':checked') ) { | |
$('#'+disableEl).prop('disabled', false); |
v. 1.0.
Pode-se afirmar que no momento Promises são a forma mais "padrão" de se tratar com
assincronismo no JS. Para quem trabalha com javascript, conhecê-las é essencial.
Uma dificuldade comum é que esta API tem uma curva de aprendizado um tanto acentuada de início, especialmente
se comparado com as alternativas mais antigas: callbacks e o módulo async
. No meu caso, levei ao menos uns 3
meses pra "cair a ficha".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM information_schema.table_constraints | |
WHERE table_name= 'table_name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
TABLE_SCHEMA, | |
TABLE_NAME, | |
COLUMN_NAME, | |
REFERENCED_TABLE_NAME, | |
REFERENCED_COLUMN_NAME | |
FROM information_schema.KEY_COLUMN_USAGE |