- 1
- 2
- 3
- 4
- 5
function loadScript(varStr, codeStr) {
var $script = $('<script>').attr('type', 'text/javascript');
$script.html('var ' + varStr + ' = ' + codeStr);
document.getElementsByTagName("head")[0].appendChild($script[0]);
}
Qwertiy 12.01.2015 01:18 # +2
dan 12.01.2015 02:06 # +1