Tag:Crap

  • The database query out of the dataset data table into a new table

    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 […]

  • Promise a very simple use

    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 […]

  • CSS in the middle

    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 […]

  • Deploy multiple items under a single domain name – configure nginx folder / subdirectory access – redirection method

    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$ { […]

  • Spring boot cache custom expiration time and custom cache key prefix

    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 […]

  • JS determines whether it is an IE browser and gives the IE version

    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 […]