2013年9月12日星期四

mvc3 js files referenced problems

 This post last edited by the wozaiztam on 2013-09-11 16:13:06
I view the page in a mvc3 referenced js file, the file address directly drag coming in,


@{
    ViewBag.Title = "BasicInfo";
    Layout = "~/Areas/UserCenter/Views/Shared/_Layout.cshtml";
}

<script src="../../../Scripts/MyAjaxForm.js"></script>


MyAjaxForm have custom methods, but run js will be reported :



------ Solution ------------------------------------ --------

or

------ For reference only ---------------------------------------
is not wrong path ah ~ ~



try it ~ ~
------ For reference only ----------------------------- ----------
js libraries like jquery-1.8.2.min.js plus no ;
js is not caused by the conflict , so try var jq = jQuery.noConflict (); jq (function () {});

没有评论:

发表评论