मुझे वेबपृष्ठ पर जावास्क्रिप्ट फ़ाइल शामिल करने की आवश्यकता है। मैं निम्नलिखित लिखें:जेड: जावास्क्रिप्ट फ़ाइल को कैसे शामिल करें
include /../scripts/jquery.timeago.js
लेकिन मैं परिणाम के रूप में
<script>/*
* timeago: a jQuery plugin, version: 0.8.2 (2010-02-16)
* @requires jQuery v1.2.3 or later
*
* Timeago is a jQuery plugin that makes it easy to support automatically
* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
*
* For usage and examples, visit:
* http://timeago.yarp.com/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright (c) 2008-2010, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org)
*/
(function($) {
....
</script>
मिलता है। लेकिन मुझे चाहिए:
<script src="/Scripts/jquery.timeago.js" type="text/javascript"></script>
यह कैसे करें?
[' include'] (https://pugjs.org/language/includes.html) का उपयोग एक पग फ़ाइल की सामग्री को दूसरे में शामिल करने के लिए किया जाता है। 'स्क्रिप्ट' वह है जिसे आप ढूंढ रहे हैं। – TheCrazyProgrammer