MCPcopy
hub / github.com/jquery/jquery / url

Function url

test/data/testinit.js:159–162  ·  view source on GitHub ↗

* Add random number to url to stop caching * * Also prefixes with baseURL automatically. * * @example url("index.html") * @result "data/index.html?10538358428943" * * @example url("mock.php?foo=bar") * @result "data/mock.php?foo=bar&10538358345554"

( value )

Source from the content-addressed store, hash-verified

157 * @result "data/mock.php?foo=bar&10538358345554"
158 */
159function url( value ) {
160 return baseURL + value + ( /\?/.test( value ) ? "&" : "?" ) +
161 new Date().getTime() + "" + parseInt( Math.random() * 100000, 10 );
162}
163
164// Ajax testing helper
165this.ajaxTest = function( title, expect, options, wrapper ) {

Callers 6

testinit.jsFile · 0.85
ajax.jsFile · 0.85
requestFunction · 0.85
basic.jsFile · 0.85
manipulation.jsFile · 0.85
deprecated.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected