How to use javascript(js file) in Orchard CMS

后端 未结 4 1509
执念已碎
执念已碎 2020-12-28 18:35

Can any one tell me please how to use js file in Orchard CMS? I added it to Layout.cshtml page as Script.include(\"jquery.js\").

4条回答
  •  伪装坚强ぢ
    2020-12-28 18:48

    To have a good example look for the module ContentPicker. This comes with default Orchard source code. It shows how you can use Script.Require("MyScript"). JQuery module itself is a good example. This module also comes with default source code.

    Note: I am referring to Orchard 1.7 and later versions

提交回复
热议问题