Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pzzrudlf/04af591294e2e12ad4f0 to your computer and use it in GitHub Desktop.

Select an option

Save pzzrudlf/04af591294e2e12ad4f0 to your computer and use it in GitHub Desktop.
change the declaration way of the specific function that you defined
<script>
window.onload = function(){
//there may occur some errors. 'referenceError:exeSelect() is not defined'
function exeSelect(param)
{
console.log(param);
}
//You can just change the above the declaration way
window.exeselect = function(param)
{
console.log(param);
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment