Tag:Crap
-
Time:2021-1-17
Published for the first time, I don’t know how to write it. I don’t know how to read it public void Publist() { ResultListData resultData = new ResultListData(); BLL.basic_project bllspro = new BLL.basic_project(); int pageIndex = string.IsNullOrEmpty(context.Request[“page”]) ? 1 : Convert.ToInt32(context.Request[“page”]); int pageSize = string.IsNullOrEmpty(context.Request[“limit”]) ? 10 : Convert.ToInt32(context.Request[“limit”]); var strWhere = ” is_del=0″; DataSet […]
-
Time:2020-11-3
During the development process, I have encountered many asynchronous problems, which are solved in a very stupid way. I have encountered them again today. I decided to use promise for a try. After looking at it for a while, I found that the simple use of promise is very simple, so I feel like sharing […]
-
Time:2020-9-24
There are many ways to center with CSS, write a few best practices here. The code is simple and rough, and it is applicable. It makes you not need to worry about this little thing, and improve your work efficiency. Is it not good to go home from work in a few minutesDon’t talk too […]
-
Time:2020-5-29
Function realization domain namehttp://127.0.0.1Normal access, corresponding project address/var/www/top/public domain namehttp://127.0.0.1/nestedNormal access, corresponding project address/var/www/nested/public No configuration Nginx profiledefault.conf server { listen 80 default_server; listen [::]:80 default_server; root /var/www/top/public; index index.html index.htm index.php; server_name _; location / { try_files $uri $uri/ /index.php$is_args$args; } location /nested { alias /var/www/nested/public; try_files $uri $uri/ @nested; location ~ \.php$ { […]
-
Time:2020-5-9
This article is mainly about some contents of redis cache in springboot2, mainly including two function points: Custom cache expiration time (Global customization, each key cannot be specified separately) Custom cache key prefix Don’t talk too much nonsense @Configuration @EnableCaching public class CacheConfig extends CachingConfigurerSupport { private static final String SYSTEMCACHE_REDIS_KEY_PREFIX = “system:cache”; private static […]
-
Time:2020-4-1
No nonsense, just go to the code. For details, please refer to the code notes function IEVersion() { Var useragent = navigator. Useragent; // get the useragent string of the browser Var ISIE = useragent. Indexof (“compatible”) > 1 & & useragent. Indexof (“MSIE”) > 1; // judge whether ie < 11 browser Var isedge […]