: This article mainly introduces the technical problems encountered during the 2015 entrepreneurship: 121-130. if you are interested in the PHP Tutorial, please refer to it. What is the difference between. and-> in 121. PHP?
$ This->: use "->" to call the class method ".
".", What does it mean? (Of course, it can represent a string connection .)
122. check whether Thinkphp has logged on.
{$ Think. session. user}
{$ Think. session. user}
PHP has been learning more and more deeply. it may take some time to understand many problems.
First, login jumps to article.
$ This-> error ("incorrect user name or password", "article ");
Can I only use redirect.
123. Thinkphp's redirect function, garbled Chinese characters.
Header ("Content-type: text/html; charset = utf-8 ");
ThinkPHP/Common/functions. php find the redirect function.
The redirect Method in ThinkPHP/Lib/Core/Action. class. php looks better.
The header statement is added to a function and a method to specify the encoding.
References: http://www.thinkphp1.cn/topic/11472.html
124. Yunda has a courier and no records can be found online.
The courier said they could only find it internally.
Some orders will have this situation, why?
125. include tag of Thinkphp.
There are many use cases of include: "Full path, suffix required", and "relative path, no suffix required ".
For more information, see: http://www.cnblogs.com/bafeiyu/archive/2013/02/20/2918136.html
126. PHP format the date and obtain the array element.
{$ Item. ctime}, Thinkphp can display the date normally: "11:11:11 ".
However, the display in native PHP is abnormal.
Later, we found that getting elements in PHP should not use ".", or use the standard item ["ctime.
Is there the EL expression in PHP.
127.discover a new juqeryplug, jquery.png fix. js.
Make all browsers support png.
Isn't all browsers support png? I heard a long time ago that the png format is "standard.
128. Thinkphp's amazing problem of getting variables.
Script
Var cid = "{$ article ['CID']}";
Var prid = "{$ article ['prid']}";
Console. log ("cid2:" + cid );
Console. log ("prid2:" + prid );
If (cid ){
$ ("# Cid"). val (cid );
}
If (prid ){
$ ("# Prid"). val (prid );
}
Script
There is A code segment "A", and A has the latest value before. After A, the data has never been correct.
Is it Mao?
The cause is found. The variables are redefined and overwritten.
{$ Article ["title"]}
How to locate the problem: the old routine is "binary search ".
129. too many CSS code, too messy.
It causes interference, and the effect of some styles has never been normal. it is really troublesome to locate the problem.
130. AJAX executes asynchronization and can be called back.
The paging statement fupage. after execution, the data is rendered.
Then, the "bidding progress" can be processed.
// Override the over method
FuPage. prototype. over = function (a, B, c ){
Progressbar ();
}
Use the callback method.
FuPage = new FuPage ();
After the paging is completed, the over method is called.
Wuhan Jiutian bird-p2p online loan system development-Internet application software development
Official website: http://jiutianniao.com
Social Q & A: http://ask.jiutianniao.com
The above introduces the technical problems encountered during the 2015 entrepreneurship: 121-130, including some content, hope to be helpful to friends who are interested in PHP tutorials.