摘要:
InputStreamReader 是字节流到字符流的桥梁 OutputStreamWriter 是字符流到字节流的桥梁 1 import java.io.*; 2 3 public class ConversionstreamDemo { 4 public static void main(Str 阅读全文
摘要:
package test; import java.io.UnsupportedEncodingException; import java.util.Arrays; public class StringDemo { public static void main(String[] args) t 阅读全文
摘要:
缓冲流是在缓冲区中创建了一个字节数组,缓冲区是在内存当中的,效率很高,它创建的这个字节数组是用来储存输出流等传递过来的数据的,直到储存到8196长度时 ,它才会向外输出.而输出流向这个缓冲区传递数据时,如果是用字节数组进行的,那么效率就会更高 package test; import java.io 阅读全文
摘要:
1 package io.test; 2 3 import java.io.*; 4 5 public class InputDemo { 6 public static void main(String[] args) throws IOException { 7 //将一个文件内容写入到另一个文 阅读全文
摘要:
1 package io.test; 2 3 import java.io.File; 4 5 /** 6 *递归遍历所有的目录 7 */ 8 public class DirAll { 9 public static void main(String[] args) { 10 System.out 阅读全文
摘要:
先查询出来一条数据 然后用 Carbon::parse()方法日期解析出来,然后再用format()方法修改成自定义格式 $data["created_at"] = $suborder_created_at->format('Y-m-d H:i:s'); $data["created_at"] = 阅读全文
摘要:
1.yum安装supervisor yum install epel-release yum install supervisor //设置开机自动启动 systemctl enable supervisord 1 2 3 4 2.配置 找到/etc/supervisord.conf配置文件,打开编 阅读全文
摘要:
#server { # listen 80; # server_name laravel.com.co; # return 301 https://laravel.com.co$request_uri; #} server { listen 80; listen [::]:80; server_na 阅读全文
摘要:
Mac有一个设计原则,就是用户不需要看到的或者用户不希望看到的,都不会显示出来。但如果你想要修改其中某些文件,也是可以的,先需要显示所有的文件,可以在终端中输入命令行来实现。显示系统隐藏的文件 defaults write com.apple.finder AppleShowAllFiles -bo 阅读全文
摘要:
(node:37693) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where 阅读全文
摘要:
转自《Centos7下使用Squid快速搭建带认证的HTTP代理服务器》 安装squid yum install squid httpd-tools -y 生成密码文件 mkdir /etc/squid3/ htpasswd -cd /etc/squid3/passwords username # 阅读全文
摘要:
解决方案: 因为composer 版本问题导致的 可以将composer 回退到1.x版本进行解决 sudo composer self-update --1 阅读全文
摘要:
解决方案: 这个和网络问题有关。需要查询 raw.githubusercontent.com 的ip 并添加到本地的 hosts 阅读全文
摘要:
1、专业版:VK7JG-NPHTM-C97JM-9MPGT-3V66T 2、企业版:XGVPP-NMH47-7TTHJ-W3FW7-8HV2C 3、教育版:YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY 4、专业版N:2B87N-8KFHP-DKV6R-Y2C8J-PKCKT 5、企业版 阅读全文
摘要:
<?php // //最简单的验证方式 // echo $_GET["echostr"]; //验证是否来自于微信 function checkWeixin(){ //微信会发送4个参数到我们的服务器后台 签名 时间戳 随机字符串 随机数 $signature = $_GET["signature" 阅读全文
摘要:
vue中Axios的封装和API接口的管理 如图,面对一团糟代码的你~~~真的想说,What F~U~C~K!!! 回归正题,我们所要的说的axios的封装和api接口的统一管理,其实主要目的就是在帮助我们简化代码和利于后期的更新维护。 一、axios的封装 在vue项目中,和后台交互获取数据这块, 阅读全文
摘要:
assume cs:code a segment dw 1,2,3,4,5,6,7,8,9,0ah,0bh,0ch,0dh,0eh,0fh,0ffh a ends b segment dw 0,0,0,0,0,0,0,0 b ends code segment start: mov ax,b mov 阅读全文
摘要:
assume cs:code,ds:a,ss:c a segment dw 1,2,3,4,5,6,7,8 a ends b segment dw 1,2,3,4,5,6,7,8 b ends c segment dw 0,0,0,0,0,0,0,0 c ends code segment star 阅读全文
摘要:
assume cs:code code segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h start: mov ax,0 mov ds,ax mov bx,0 mov cx,8 s: mov ax,[bx] mov cs:[bx], 阅读全文
摘要:
assume cs:code code segment mov bx,020H mov ds,bx mov bx,0 mov cx,63 s:mov [bx],bx inc bx loop s mov ax,4c00H int 21H code ends end 阅读全文
摘要:
:class="{selects:source==1}" 根据变量添加class :style="{paddingTop: top}" :style="{backgroundImage: 'url('+reply.record_content+')'}" 阅读全文
摘要:
js try catch 获取错误行数 阅读全文
摘要:
/** * curl 封装函数 * @param string $url 请求地址 * @param string $data 请求数据 * @param string $type 请求方式 默认为GET * @return string */ function jbtm_curl($url, $d 阅读全文
摘要:
protected $middleware = [ \Illuminate\Session\Middleware\StartSession::class, ]; 在 kernel.php中 加入StartSession::class 阅读全文
摘要:
<?php libxml_disable_entity_loader(true); $notify_values = json_decode(json_encode(simplexml_load_string($xmlReturn, 'SimpleXMLElement', LIBXML_NOCDAT 阅读全文
摘要:
$(function () { $("#pk_status").change(function () { valid = $(this).val(); if(valid){ table.columns().on('preXhr.dt', function ( e, settings, data ) 阅读全文
摘要:
/** * php 提取html中图片并替换 */ //要替换的内容 //提取图片路径的src的正则表达式 $match_str = '/(<img([^>]*)\s*src=(\'|\")([^\'\"]+)(\'|\")|url.*\(https:.*=png\))/'; preg_match_ 阅读全文
摘要:
public function getStr($str=false){ $poems="从,善,如,登,从,恶,如,崩,已,知,花,意,未,见,其,花,,,已,见,其,花,,,未,闻,花,名,如,果,能,不,长,大,就,好,了,啊,可,是,时,光,在,身,后,挡,住,退,路,或,许,前,路,永,夜, 阅读全文
摘要:
function getMonthAndDay($date1,$date2){ $datestart= date('Y-m-d',strtotime($date1)); if(strtotime($datestart)>strtotime($date2)){ $tmp=$date2; $date2= 阅读全文
摘要:
//上传 $("#voice_file").on("change", function () { var objUrl = upload_file(this.files[0]); if (objUrl.code == 1) { $('#video_url').val(objUrl.data.photo) $('.... 阅读全文