str_replace(substr($_SESSION[ phone ], 0, 1), +64 , $_SESSION[ phone ]); assuming that I am 0111012123 , he will be replaced by + 641111612123 . gets the first zero, but str_replace will change all 0 to + 64 . what a pain in the neck ...
<input type="text" placeholder="" maxlength="13" oninput="this.value=(this.value.replace( [^0-9.]+ , ))" > when using the above code to input input, control input can only enter numbers and decimal point...
for example, the POST request interface is specified, but a request from GET will report an error as shown in the following figure so how do you customize the returned errors? For example, { "error ": "Method not allowed "} is returned. ...
I now encounter js dynamic loading content: there are only three crawling methods: 1: use the browser to crawl 2: look at the js source code, parse the parameters 3: sometimes the relevant parameters will appear in other parts of the page, carefully l...
because the company uses other back-end frameworks and uses Vue as the front-end interface, vue and plug-ins are written in cdn and js on a page with no components. are you hungry? when writing left and right menus, click on the left menu, the right si...
<div id="app"> <h2>Todos:< h2> <ol> <li v-for="todo in todosArr"> <label> <input type="checkbox" v-on:change="toggle(todo)" v-bind:checked=&quo...
http: www.beian.gov.cn porta. I need to put a query function on my website. I don t want to let users know that I found the data here. So I can t link to this address directly on my website. I want to make such a query form interface on my website,...