您的位置:首页 > Web前端 > JQuery

Umbraco Form需要引用些客户端dependencies (jquery)

2016-07-26 11:47 489 查看

Preparing your frontend

In order to work correctly Umbraco Forms needs some client dependencies, being jquery, jquery validate and jquery validate unobtrusive.

Adding the scripts to your template

Simply add those to your template these can be in the head or at the bottom of the page (if you add them to the bottom you'll need to perform an extra step).

Easiest way to add the dependencies is to fetch them from a cdn (like http://www.asp.net/ajax/cdn). So simply add the following 3 scripts

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/mvc/5.1/jquery.validate.unobtrusive.min.js"></script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: