Saturday 17 August 2019

javascript - How to check if the URL contains a given string?

Answer


Answer




How could I do something like this:





Answer



You need add href property and check indexOf instead of contains












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...