how to call javascript via if else statement
if (localStorage.getItem('lang')=='zh'){
//run javascript prepared for Chinese (not a function but whole javascript file)
}
else {
//run another javascript file prepared for English
}
how to call javascript via if else statement
if (localStorage.getItem('lang')=='zh'){
//run javascript prepared for Chinese (not a function but whole javascript file)
}
else {
//run another javascript file prepared for English
}