Jump to content

what does it mean


teng84

Recommended Posts

Well Search is a javascript class which has been declared previously someplace with

 

function Search() {
}

 

That code is using the "prototype" keyword to add a getSearch() method to the Search class, as well as any objects of Search that might have been instantiated.  Javascript lets you do that.  At some point I you could have code like this someplace:

 

asearch = new Search();
asearch.getSearch('http://www......');

 

 

Link to comment
https://forums.phpfreaks.com/topic/235472-what-does-it-mean/#findComment-1210261
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.