摘要: 1、使用sc命令创建服务 命令格式如:sc create [service name] [binPath= ] ... 比如:sc create TestServiceName binpath="D:\Program Files\MyPro\test.exe" 为test.exe... 阅读全文
posted @ 2015-06-02 10:50 Vincenter 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 出于安全因素考虑,直接跨域访问是不允许的,下面介绍二种跨域的方法。 一,通过php curl 1 function curlPost($url,$params){ 2 $postData = ''; 3 foreach($params as $k => $v){ 4 $postData .= $k 阅读全文
posted @ 2015-04-26 14:04 Vincenter 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1、mysql随机顺序返回结果集数组 1 SELECT * FROM table_name ORDER BY rand(); 阅读全文
posted @ 2015-04-13 17:51 Vincenter 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1、人首先心要静下来,然后才该想做什么。往往都是一颗浮躁的心多做很多无用功。 阅读全文
posted @ 2015-04-13 00:23 Vincenter 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 基本选择器1. id选择器(指定id元素)将id="one"的元素背景色设置为黑色。(id选择器返单个元素)1 $(document).ready(function () {2 $('#one').css('background', '#000');3 });2. cl... 阅读全文
posted @ 2015-04-10 14:11 Vincenter 阅读(955) 评论(0) 推荐(0) 编辑
摘要: 1、IE中不兼容ajax中data最后一个参数加逗号,其余chrome Firefox均支持。code: 1 $("document ").ready(function() { 2 $(".btn_fbpl").click(function... 阅读全文
posted @ 2015-04-02 16:41 Vincenter 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1. 阅读全文
posted @ 2015-04-02 01:04 Vincenter 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 目前浏览器端跨域访问常用的两种方法有两种:1、通过jQuery的ajax进行跨域,这其实是采用的jsonp的方式来实现的。jsonp是英文json with padding的缩写。它允许在服务器端生成script tags至返回至客户端,也就是动态生成javascript标签,通过javascrip... 阅读全文
posted @ 2015-03-31 11:32 Vincenter 阅读(4159) 评论(0) 推荐(0) 编辑