Wednesday 7 November 2018

javascript - Get current URL with jQuery?

I am using jQuery. How do I get the path of the current URL and assign it to a variable?



Example URL:




http://localhost/menuname.de?foo=bar&number=0

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...