I have the following function in a file:
function alertWin(title, message) {
.......
.......
}
In another typescript file I have:
function mvcOnFailure(message) {
"use strict";
alertWin("Internal Application Error", message);
}
I am getting an error saying "alertwin" does not exist in the current scope.
Is the way to solve this for me to define this function in another file and then reference that? If so then what would the definition look like?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…