Wednesday, May 18, 2011

JavaScript::Add Extensions

Array.prototype.newMethod = function () {

return “this is an extended method for javascript array”;

};http://www.blogger.com/img/blank.gif

var js_array = new Array();

alert(js_array.newMethod());


references:
[1] Extend array functions http://blog.programmingsolution.net/javascript/javascript-array-extension/
[2] http://stackoverflow.com/questions/477700/array-functions-in-jquery

No comments:

PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'   References: [1] https:/...