是否有可能使用剃刀语法JavaScript文件? [英] Is it possible to use razor syntax in Javascript files?

查看:98
本文介绍了是否有可能使用剃刀语法JavaScript文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用我的里面的JavaScript文件剃刀语法。这是可能的,而不包括JavaScript的内联到页面?

I'd like to use razor syntax inside my Javascript files. Is this possible without including the javascript inline into the page?

推荐答案

我发现一把剃刀引擎 RazorJS 上的NuGet能解决 @ JS 文件搜索
关于包能力结果所有者博客和解释
的NuGet

I found a razor engine RazorJS on nuget that solves @ in js files
The owner blog and explanations about the package abilities
The Nuget package

看多这个问题

这篇关于是否有可能使用剃刀语法JavaScript文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆