Javascript examples for jQuery Method and Property:ajax
Replacing email placeholder in ajax call
<html lang="en"> <head> <script src="https://code.jquery.com/jquery.min.js"></script> <script> $(function() {//from w w w. j ava 2 s .co m $.get('email.html', function(data) { console.log(1, typeof data); console.log(2, data); console.log(3, data.replace('##title##', 'This is a title')); }); }); </script> </head> <body> </body> </html>