Jade: Wie, um eine javascript-Datei

Brauche ich, um eine javascript-Datei in Webseite. Ich Schreibe die folgenden:

include /../scripts/jquery.timeago.js

aber ich bekomme

<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>

als Ergebnis. Aber ich brauche:

<script src="/Scripts/jquery.timeago.js" type="text/javascript"></script>

Wie es zu tun?

includes verwendet, für die auch die Inhalte von einem Mops-Datei in ein anderes. script ist, was Sie suchen.

InformationsquelleAutor Oleg Sh | 2013-01-15

Schreibe einen Kommentar