07 2018 档案

摘要:Drupal Console.composer require drupal/console:~1.0.0@rc然后到bin下就可以运行drupal命令了 阅读全文
posted @ 2018-07-31 17:22 qqisnow2021 阅读(102) 评论(0) 推荐(0) 编辑
摘要:有时候会遇到json_decode()解析的字符串中有个长整型,解析成1.0E….之类的溢出问题。解决办法根据php的版本不同而不同:PHP5.4以上的可以配置下json_decode(),解析的时候这么写就好//$de_res为需要解析的值;json_decode($de_res,true, 51 阅读全文
posted @ 2018-07-23 14:57 qqisnow2021 阅读(204) 评论(0) 推荐(0) 编辑
摘要:https://www.nczonline.net/blog/2009/05/05/http-cookies-explained/ Cookie small files of information that a web server generates and sends to a web bro 阅读全文
posted @ 2018-07-23 14:11 qqisnow2021 阅读(200) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport/7557433#7557433 阅读全文
posted @ 2018-07-20 11:24 qqisnow2021 阅读(156) 评论(0) 推荐(0) 编辑
摘要:每一个block的类都有getcachecontext getcachetags getcachemaxage的方法 这个和build返回的数组的#cache设置是基本冲突的 , 有一个就没有另一个。block的默认缓存时间是不过期 阅读全文
posted @ 2018-07-16 18:15 qqisnow2021 阅读(122) 评论(0) 推荐(0) 编辑
摘要:$values = [ 'entity_type' => 'node', 'entity_id' => '1', 'field_name' => 'comment', 'comment_type' => 'comment', ]; $comment = \Drupal::entityTypeMana 阅读全文
posted @ 2018-07-16 16:33 qqisnow2021 阅读(194) 评论(0) 推荐(0) 编辑
摘要:如果用方法有时候加载出来的变量的提示不多,不方便所以,多用有提示的方式来写,可能是个好的选择 阅读全文
posted @ 2018-07-11 16:48 qqisnow2021 阅读(156) 评论(0) 推荐(0) 编辑
摘要:到mysql安装目录cd binmysql -uroot -p''show databases;show tables;select * from users\G; 重新登录到localhost/phpmyadmin就可以登录了 https://wenwen.sogou.com/z/q6590851 阅读全文
posted @ 2018-07-10 14:03 qqisnow2021 阅读(216) 评论(0) 推荐(0) 编辑
摘要:function add(int $a,int $b):float{ return $a+$b;}$add = add('4',5);var_dump($add); function add(int $a,int $b):int{ return $a+$b;}$add = add('4',5);va 阅读全文
posted @ 2018-07-09 17:32 qqisnow2021 阅读(268) 评论(0) 推荐(0) 编辑
摘要:$array = [0,1,2,3,4];foreach ($array as &$val) { var_dump($val); $array[] = 'a';} 这段代码打印出来可不得了,非常可怕。 $array = [0,1,2,3,4];foreach ($array as $val) { v 阅读全文
posted @ 2018-07-09 10:24 qqisnow2021 阅读(76) 评论(0) 推荐(0) 编辑
摘要:<?php $memory1 = microtime( TRUE ); $data = array(); for($i=0;$i<1000;$i++) { $data[] = array( 'property1' => md5(microtime()), 'property2' => md5(mic 阅读全文
posted @ 2018-07-09 10:12 qqisnow2021 阅读(121) 评论(0) 推荐(0) 编辑
摘要:1, browser zoom 要设置到100%2, screen resolution要设置到合适的数字3, 最好找到一个参照物-- css里面的pixel, 是按照dpi来的,是基于96dpi来算的的1个inch里面的点数,resolution变了,所以,1px在不同的resolution下其实 阅读全文
posted @ 2018-07-05 10:42 qqisnow2021 阅读(135) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/haochuang/p/5796284.html 阅读全文
posted @ 2018-07-05 07:53 qqisnow2021 阅读(129) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示