jquery - how to append dynamic version number to javascript tag -


i have html file in loading multiple js files . need declare variable n append each of script tag. how can ? appending variable parameter

  1. this can done server side client side. safest way server side. set variable session containing current system date of server , add onto page.
  2. if wish client side, need script tags in code src attribute , append variable containing current date it. can call piece of code window.onload() or document.ready() per will.

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -