Assuming your property item.Namehas a string value SomeThing. So when the razor displays your page, your generated markup will be
<script> func(SomeThing) </script>
javascript , SomeThing js. js , . , script,
SomeThing
. .
<script>func('@item.name') </script>
, func javascript , .
<script>
function func(nam) {
alert(nam);
}
</script>
<script>func('@item.Name') </script>
js , / .
<script src="~/Scripts/YourJsFileWherFuncIsDefined.js"></script>
<script>func('@item.Name') </script>