汇成软件 Create the world!!!

win10 hyper-v 虚拟机ping不通宿主机问题

在Windows10  Hyper-V 中安装 Linux (Centos6.9)虚拟机无法 ping 通宿主机


这种情况下关闭 Windows 防火墙就能ping通了,当然关闭防火墙不安全。所以需要  做以下步骤:


控制面板-》系统和安全-》Windows防火墙-》高级设置-》入站规则    启用下图被红框选中的两个选项即可。

fires.png

作者:admin 分类:Linux 浏览:1343 评论:0

分享与定时自动跳转

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>My test</title>
</head>
<body>
	       <script src="js/jquery.min.js"></script> 
<div id="txt"></div>
         <a href="https://www.163.com"><span>ppp</span></a>
	       <div id="xs_my">
<div id="fb-root"></div>
 



<div class="fb-share-button" data-href="https://www.eobdmall.com/product_content.php?product_id=1015" data-layout="button_count" data-size="large"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://www.eobdmall.com/product_content.php?product_id=1015;src=sdkpreparse" class="fb-xfbml-parse-ignore">分享</a></div>
</div>
<script type="text/javascript">
$(".fb-share-button").click(function(event) {

       setTimeout(function() {
        $("#xs_my").html('<button type="button" onclick="timedText()">see my </button>') 
    }, 5000);
  
});


function timedText(){
  var x=document.getElementById('txt');
  var t1=setTimeout(function(){$("#txt").html("2 秒")},2000);
  var t2=setTimeout(function(){$("#txt").html("4 秒")},4000);
  var t3=setTimeout(function(){$("span").click()},6000);
}

</script>

</body>
</html>


<a href="https://www.facebook.com/sharer/sharer.php?u=example.org" target="_blank">
  Share on Facebook
</a>


<script type="text/javascript">
 // $(document).ready(function() {
 //     setTimeout(function() {
 //  $("span").click();
 //    }, 1000);
  
 
 // });
 
</script>
作者:admin 分类:前端技术 浏览:583 评论:0

批量插入

一条insert语句批量插入多条记录

原创|浏览:138554|更新:2017-12-19 08:21

一条insert语句批量插入多条记录


常见的insert语句,向数据库中,一条语句只能插入一条数据:


insert into persons 


(id_p, lastname , firstName, city )


作者:admin 分类:php 浏览:634 评论:0

MYSQL当天日期

SELECT CURDATE()


当天日期


作者:admin 分类:mysql 浏览:551 评论:0

paypal开发


快捷生成js收款按钮

采用SDK录入数据库


关键:要把沙盒地址修改成正式地址


作者:admin 分类:PayPal 浏览:597 评论:0

js与jquery自动触发a链接的方法

自动触发a链接的方法如下:

1.

<body >
 <a  href="http://www.shengmake.net" ><span>Affiliate</span></a> 
</body>
<script src="jquery-3.6.0.min.js"></script>

<script type="text/javascript">
 $(document).ready(function() {
     setTimeout(function() {
  $("span").click();
    }, 1000);
  
 
 });
 
</script>
作者:admin 分类:前端技术 浏览:554 评论:0

php替换函数--数组写法

<?php 

$my_name='&&&&';

//echo  substr(xml_entities($my_name),0,135);
ECHO xml_entities($my_name);


function xml_entities($string) {
    return strtr(
        $string, 
        array(
            "<" => "",
            ">" => "",
            '"' => "",
            "'" => "",
            "&" => "",
            "|" => "",
            "-" => "",
            "–" => "",
            ":" => "",
            "Ⅱ" => "2",
            
        )
    );
}
 ?>
作者:admin 分类:php 浏览:626 评论:0

Can herpes be cured for Traditional Chinese medicin?

        Can herpes be cured,Traditional Chinese medicine can cure herpes. Traditional Chinese medicine mostly adopts the method of syndrome differentiation and treatment, and chooses the appropriate Chinese medicine according to the condition of the disease. If it is liver meridian fever, the patient's skin will feel burning and tingling, and the mouth will be bitter and the throat will be dry. At this time, you need to take some traditional Chinese medicines for clearing away heat and detoxification. You can take some Longdan Xiegan Decoction, mainly decoction of gentian grass, gardenia, mutong, rehmannia, chaihu and other medicines, which can help clear the liver. You can also take Xieqing Pills, decoction of Chinese angelica, chuanxiong, rhubarb, Qianghuo and other medicines, which can also alleviate the condition.

统计mysql字段值的长度

SELECT product_brand  FROM shop_product WHERE LENGTH(product_brand)>3;


作者:admin 分类:mysql 浏览:636 评论:0