首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > jQuery插件messages

jQuery插件messages

  • 资源大小:34.64 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: jquery 插件 messages

资 源 简 介

JQuery Messages Plugin A plugin for JQuery to manage labels in applications. Description Loads the labels for your application and re-use they when are needed: var labels = { greetings : "Hello world!!!", greetingsTo : "Hello {name}"}$.loadMessages(labels); The labels can be tokenized and replaced when are required with the correct values: alert($.message("greetings")); // --> Hello world!!!alert($.message({key : "greetingsTo", params: {name: "Manuel"}}); // --> Hello Manuel or you can change directly the content of a tag: $("h1").message({key : "greetingsTo", params: {name: "Manuel"}}); //Change the content of all "h1" to "Hello Manuel" There is the possibility of use the element"s id as key of the message: