VS 2019脚本标签(在cshtml中)“转到定义”不起作用,但在VS 2015中起作用。
//javascript function in cshtml
<script>
function getSelectedItem()
{
var x = 100;
}
function onDetail()
{
var selectedItem = getSelectedItem(); //F12 go to definition doesn't work
windowResult.SelectedItem = selectedItem;
windowResult.Status = true;
}
</script>
//javascript global variable in cshtml
<script>
var _OperationType = 0;
var _FormType= 0;
function SetDefaultsParam()
{
var param = {};
param.Type= _OperationType; //F12 go to definition doesn't work
param.Formtype= _FormType;
param.MasterId = _MasterId;
}
</script>
cshtml( F12 )中的函数或全局变量“转到定义”给出“无法导航至符号.........”