(url)
| 91 | } |
| 92 | |
| 93 | function getQuery(url) { |
| 94 | var question = url.indexOf('?') |
| 95 | var hash = url.indexOf('#') |
| 96 | if (hash == -1 && question == -1) return '' |
| 97 | if (hash == -1) hash = url.length |
| 98 | return question == -1 || hash == question + 1 |
| 99 | ? url.substring(hash) |
| 100 | : url.substring(question + 1, hash) |
| 101 | } |
| 102 | |
| 103 | function getParameters(xhr) { |
| 104 | if (getHTTPMethod(xhr) == 'GET') { |