Open zhaoqige opened 7 years ago
Need browser support "Web Store".
if (typeof(Storage) != 'undefined') {
localStorage('ping_target', '192.168.1.2');
$('#qz-tool-icmp-target').val(localStorage.getItem('ping_target'));
} else {
console.log('Your browser don't support HTML5 Web Storage.');
}
Even after user refreshed the web page, still has the last target