mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-07-31 03:41:59 +08:00
add
This commit is contained in:
parent
e2fe388178
commit
35740ade71
@ -244,6 +244,7 @@
|
||||
<button id="get_code_cryptojs">cryptojs模板代码</button>
|
||||
<button id="get_code_uglifyjs">uglifyjs模板代码</button>
|
||||
<button id="get_code_request">request模板代码</button>
|
||||
<button id="get_code_jsencrypt">jsencrypt(RSA)模板代码</button>
|
||||
<br/>
|
||||
<hr>
|
||||
<label>code</label>
|
||||
|
126
tools/jsencrypt.js
Normal file
126
tools/jsencrypt.js
Normal file
File diff suppressed because one or more lines are too long
@ -65,4 +65,14 @@ if (get_code_request){
|
||||
}
|
||||
get_file('tools/request.js', callback)
|
||||
})
|
||||
}
|
||||
|
||||
var get_code_jsencrypt = document.getElementById('get_code_jsencrypt')
|
||||
if (get_code_jsencrypt){
|
||||
get_code_jsencrypt.addEventListener('click', function(e){
|
||||
function callback(text){
|
||||
document.getElementById('my_code_dec').value = text
|
||||
}
|
||||
get_file('tools/jsencrypt.js', callback)
|
||||
})
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user