has any method like substitute of mootools in jquery ..

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-04-12T10:04:31Z Indexed on 2010/04/12 10:13 UTC
Read the original article Hit count: 310

this is mootools code:

var myString = "{subject} is {property_1} and {property_2}.";
var myObject = {subject: 'Jack Bauer', property_1: 'our lord', property_2: 'savior'};
myString.substitute(myObject);

and does jquery has this mothod? or like this method ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about mootools