BindVar

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-13 16:41:30

软件介绍

Esta função é similar a sprintf, porém mais simples.

/*
* s = "The %1 want %2";
* a,b... = args
* BindVar(s,a,b) -> The a want b
* ex.: BindVar("text message %3 %1 and %2", value1, value2, value3) -> text message value3 value1 and value2
* last-modified: 20080429
*/
function BindVar()
{
var v='';
var args = BindVar.arguments;
var numArgs = args.length;
if(numArgs)
{
msg = args[0];
for(var i=1; i < numArgs; i++)
{
v = args[i] != undefined ? args[i] : "";
msg = msg.replace("%"+i, v);
}
}
return msg;
}

本文地址:https://codercto.com/soft/d/23303.html

法律程序的意义:对中国法制建设的另一种思考

法律程序的意义:对中国法制建设的另一种思考

季卫东 / 中国法制出版社 / 2005-1 / 10.0

《法律程序的意义:对中国法制建设的另一种思考》内容为现代程序的概念与特征、现代程序的结构与功能、程序与现代社会、中国法律程序的缺陷、程序建设的程序等。一起来看看 《法律程序的意义:对中国法制建设的另一种思考》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具