phpjs
nl2br() equivalent in javascript [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: jQuery convert line breaks to br (nl2br equivalent)[详细]
2023-04-06 00:05 分类:问答How to write a base32_decode in JavaScript?
I\'m trying to create the equivalent of PHP\'s unpack. I\'ve noticed the project PHPJS doesn\'t have it. I need it for the implementation of base32_encode and base32_decode (using Crockford\'s alphabe[详细]
2023-03-08 16:40 分类:问答How can I use preg_match in jQuery?
Can I use preg_match to validate phone number in jQuery? Here is my code which does not work: if (!preg_match("/开发者_JS百科^[0-9]{3}-|\\s[0-9]{3}-|\\s[0-9]{4}$/", phone.val() )){[详细]
2023-03-06 17:38 分类:问答array_count_values for JavaScript instead
I have the following PHP-script, now I need to do the same thing in JavaScript. Is there a function in JavaScript that works similar to the PHP function, I have been searching for days but cannot find[详细]
2023-02-15 18:14 分类:问答Read and write cookies
I have a javascript file linked to a PHP page which has a value that needs be saved for when a form is submitted and the page is refreshed.[详细]
2023-02-10 01:56 分类:问答How can I write this PHP code in JavaScript
How can I write this PHP code in JavaScript? I have no knowledge about JavaScript... :-s <?php $pozethumb=scandir(\"./pics/flori/thumbs\");[详细]
2023-01-23 07:00 分类:问答str_shuffle() equivalent in javascript?
Like the str_开发者_如何学Pythonshuffle() function in PHP, is there a function similar in shuffling the string in javascript ?[详细]
2023-01-04 15:13 分类:问答JavaScript Dates and Times
What is the JavaScript equivalent to the following PHP code: $expTime = time() + (5 * 60 * 60); // now plus 5 hours (5 hour; 60 mins; 60 secs)[详细]
2023-01-03 17:51 分类:问答Javascript equivalent of php's parse_url
I am writing a chrome extension that change part of the url in the current tab and reload the page with the modified url. I am wondering if there is a Javascript equivalent of the php\'s parse_url fun[详细]
2022-12-28 11:16 分类:问答JavaScript equivalent of this simple php
please can somebody let me know how to do the following PHP in JavaScript. The vaibles in PHP are Parameters in Javascript. If all three Parameters are set then I would like a PHP script to execute:[详细]
2022-12-19 14:49 分类:问答