Удаление? от document.location.search

Я думаю, у вас есть проблема с чувствительностью к регистру имен функций в PostgreSQL .

Попробуйте это:

c.callproc('"GetAllNotes"', (float(longitude), float(latitude)))

9
задан 18 April 2009 в 06:48
поделиться

2 ответа

No problem

window.location.search.substr(1);

Edit

I didn't even think about it the first time, but you should refer to window.location, not document.location. It has the broadest browser support.

https://developer.mozilla.org/En/Document.location#Notes

17
ответ дан 4 December 2019 в 12:21
поделиться

Вы можете просто заменить "?" персонаж с пустой строкой:

var searchWithoutQuestionMark = document.location.search.replace('?', '');

Стив

0
ответ дан 4 December 2019 в 12:21
поделиться
Другие вопросы по тегам:

Похожие вопросы: