how to access a variable otuside a javascript function which is defined in a function

前端 未结 0 1750
不知归路
不知归路 2021-01-23 04:33

I want to alert the string "ola" which is defined in the function myVariable out the function var ola;

function myVariable() {

return_first=\'ola\'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题