JS generates cookies and uses php to read cookies October 29, 2014 Wolf Network information 6370 times None The one at the top of the blog home page article is an advertising space. It was originally intended to not appear again for a long time after closing, but it was abandoned when it found that it was necessary to add a database to manage cookies with JQ. Just now, I searched and found that after JS writes cookies, they can be read in PHP. It seems that it is also possible for JS to generate cookies and read cookies in PHP. The steps are as follows: JS generates cookies set cookies ("open&quo read the whole passage JavaScript js cookie
Solution to displaying year error using getYear method in JS August 12, 2014 Wolf Front end correlation 12979 times 15 Some websites put a JS display time on the page. When getYear is used to obtain the year, some browsers will display an error. For example, if 2014 should be displayed normally, it will be displayed as 114 years. Why does this happen? What browsers are the problems? The test shows that IE6-IE8 is normal, but IE9 and above are abnormal. Of course, Firefox and Chrome will not display properly! What's the solution read the whole passage JavaScript js getfullyear
Front end JS CDN public library sorting June 6, 2014 Wolf Happy sharing 13174 times 1 Now web applications are using JS class libraries. These class libraries range from dozens of K to hundreds of K, and the domestic network access speed is not so comfortable, so we recommend the CDN cache of common JS class libraries to developers. No matter where customers visit your pages, the speed of using public class libraries will save a lot of time for your pages. The following is a list of CDN service providers of common JavaScript public libraries: Google's js class library CDN publishing page http://cod... read the whole passage Baidu three hundred and sixty JavaScript jquery
Typecho displays and hides basic information of visitors according to their cookies October 12, 2013 Wolf Happy sharing 12206 times 12 I don't know whether the title is accurate. Let's call it that. The default themes of Typecho do not automatically hide visitor information, which means that the nickname, email, and website address will not automatically shrink after the first time the visitor enters the basic information message. I don't know when to start, but I am also obsessed with this problem. I thought it would be great if I could shrink it. So I started the process of searching. Finally, I found the tutorial on other people's blogs read the whole passage JavaScript comments Typecho
JQuery paging plug-in simplePagination August 1, 2013 Wolf Happy sharing 11529 times 3 Jquery simplePagination is a simple automatic pagination generation plug-in. I just saw it on 17 Materials and thought it was very good, so I transferred it to my blog. It is also convenient to use in the future. OK, let's not mention anything else. Look at the last preview, there are three forms in total: preview address: https://itlu.net/demo/simplepagination/ If you don't mind the trouble, click the preview address directly to view read the whole passage CSS JavaScript jquery
Method of generating static HTML for Typecho homepage April 8, 2013 Wolf Front end correlation 28316 times 36 The day before yesterday, I started HTML generation on the blog home page. Because the blog program uses Typecho, static generation can be in the form of plug-ins, but I don't think it is necessary to use a plug-in for this small function. How can I generate HTML from my homepage? The most direct teacher is Google. It's very simple. The keyword is“ Typecho front page static”. The first one I found was what I wanted read the whole passage HTML php JavaScript Typecho
Image fault tolerance processing, using Oneerror event of Javascript May 14, 2012 Wolf Front end correlation 12573 times 2 Most of the time, in order to display web page images, a default image can be displayed even when the image does not exist. An oneerror event will be set on the HTML of img. In fact, the code is very simple. You can simply write an example:<img src="pic. gif" onerror="javascratch read the whole passage google JavaScript onerror
15 great JavaScript development tools May 18, 2011 Wolf Happy sharing 8705 times 3 In development, with the help of powerful tools, you can get twice the result with half the effort. Today, this article shares the latest collection of 15 very useful JavaScript development tools. TestSwarm: Continious & Distributed JS Testing TestSwarm is an open source project launched by Mozilla Labs, which aims to provide developers with the ability to quickly and easily test their own Js on multiple browser versions read the whole passage CSS JavaScript
JQuery Basic Tutorial PDF Download May 6, 2011 Wolf Happy sharing 13577 times 11 I haven't shared e-books for more than a year. Today, I'd like to take advantage of this little time to share my other e-book<jQuery Basic Tutorial>the world's first jQuery book, Amazon's five-star reputation, and jQuery's official website recommendation. JQuery is a powerful but concise lightweight JavaScript library, which is written by famous experts. Because in DOM operations, event processing, Ajax features read the whole passage JavaScript pdf jquery js
Document.getElementById is empty or not the solution of the object June 4, 2010 Wolf Happy sharing 10821 times 5 1. 'null' is empty or not an object: add a defer=true attribute in<script type="text/javascript">, that is,<script type="text/javascript" defer=true>2 Document.getElementById is null Reason: var titab read the whole passage JavaScript script js document getElementById