add json func
This commit is contained in:
3
~/JavaScript/textContent.js
Normal file
3
~/JavaScript/textContent.js
Normal file
@ -0,0 +1,3 @@
|
||||
document.getElementById('element').textContent;
|
||||
// If you need to target < IE9 then you need to use
|
||||
document.getElementById('element').innerText;
|
Reference in New Issue
Block a user