1.react是什么? React是Facebook开源的一个用于构建用户界面的Javascript库,已经 应用于Facebook及旗下Instagram。 和庞大的AngularJS不同,React专注于MVC架构中的V,即视图。 这使得React很容易和开发者已有的开发栈进行融合。 React ...
分类:
Web程序 时间:
2017-02-23 14:03:48
阅读次数:
213
js代码中全局定义的函数,比如 function a(){ } a(); 该函数中的this指向global对象(在浏览器中就是window对象),谁调用的就指向谁 “吃饭、睡觉、打豆豆” this.吃饭 this.睡觉 this.打豆豆 谁说的这句话,this就是谁。 同理谁调用的函数,this就 ...
分类:
Web程序 时间:
2017-02-23 14:04:17
阅读次数:
164
1.首先去下载log4net.dll,在项目中引用。 2.添加log4net.config配置文件(文件名可以自己取,但是一定要为配置文件类型),在配置文件中配置相关的配置。 3.在项目全局文件Global.asax中添加监控log4net配置。 4.初始化ILog。 5.测试写日志功能。 我的配置 ...
分类:
Web程序 时间:
2017-02-23 14:07:17
阅读次数:
222
k8s集群之kubernetes-dashboard和kube-dns组件部署安装说明最好先部署kube-dns,有些组合服务直接主机用hostname解析,例如redis主从,heapster监控组件influxdb、grafana之间等。参考文档https://greatbsky.github.io/KubernetesDoc/kubernetes1.5.2/cn.html安装集群文档见:h..
分类:
Web程序 时间:
2017-02-23 14:14:47
阅读次数:
17238
varcasper=require(‘casper‘).create();
casper.start();
casper.thenOpen(‘http://www.baidu.com/‘,function(){
casper.captureSelector(‘baidu.png‘,‘html‘);
});
casper.run();
分类:
Web程序 时间:
2017-02-23 14:23:15
阅读次数:
223
varsystem=require(‘system‘);
if(system.args.length===1){
console.log(‘trytopasssomeargswheninvokingthisscript!‘);
}else{
system.args.forEach(function(arg,i){
console.log(i+‘:‘+arg);
})
}
phantom.exit();
分类:
Web程序 时间:
2017-02-23 14:23:37
阅读次数:
352
varwebpage=require(‘webpage‘);
varpage=webpage.create();
varurl="https://www.baidu.com/";
page.viewportSize={width:1920,height:1080}
page.open(url,function(s){
if(s=="success"){
page.render(‘baidu.jpeg‘,{format:‘jpeg‘,quality:‘100‘});
phantom.exit();..
分类:
Web程序 时间:
2017-02-23 14:24:33
阅读次数:
228
varwebpage=require(‘webpage‘);
varpage=webpage.create();
varurl="https://www.baidu.com/";
page.open(url,function(s){
if(s=="success"){
page.includeJs("http://code.jquery.com/jquery-1.8.0.min.js",function(){
page.evaluate(function(){
$("#kw").val(..
分类:
Web程序 时间:
2017-02-23 14:24:49
阅读次数:
190
varwebpage=require(‘webpage‘);
varpage=webpage.create();
varurl="https://www.baidu.com/";
page.onConsoleMessage=function(msg){
console.log(‘Pagetitleis‘+msg);
}
page.open(url,function(s){
if(s=="success"){
page.evaluate(function(){
console.log(docu..
分类:
Web程序 时间:
2017-02-23 14:25:14
阅读次数:
178
//s为success表示成功
varpage=require(‘webpage‘);
page.open(‘https://www.baidu.com/‘,function(s){
console.log(s);
phantom.exit();
});
分类:
Web程序 时间:
2017-02-23 14:25:42
阅读次数:
149
varcasper=require(‘casper‘).create({
clientScripts:["jquery.js"],
pageSettings:{
//userAgent:‘Mozilla/5.0(compatible;MSIE9.0;WindowsNT6.1;Win64;x64;Trident/5.0;.NETCLR2.0.50727;SLCC2;.NETCLR3.5.30729;.NETCLR3.0.30729;MediaCenterPC6.0;InfoPath.3;.NET4.0C..
分类:
Web程序 时间:
2017-02-23 14:25:54
阅读次数:
316
1.准备工作下载地址http://ueditor.baidu.com/website/下载出来你所需要的udditor版本2.解压出来3.导包解压出来文件jsp下的lib导入到项目中web-inif下的lib中注意:如果导入包仍然报inser...server...这种错误,把包导入服务器lib下4.修改配置文件ueditor.config.jswindow.UEDI..
分类:
Web程序 时间:
2017-02-23 14:28:18
阅读次数:
252
<form>标签用于创建HTML表单。表单能够包含input元素,比如文本字段、复选框、单选框、提交按钮等等。表单还可以包含menus、textarea、fieldset和label元素等。action{URL}:一个URL地址;指定form表单向何处发送数据。enctype{string}:规定在发送表单数据之前,如何对..
分类:
Web程序 时间:
2017-02-23 14:34:56
阅读次数:
305
<!DOCTYPEHTML><HTML><head><metacharset="GBK2312"><title>图像与超链</title></head><body><h3>图像</h3><imgsrc="1.png"width="30"height="30"border="1"alt="提示QQ"><ahref="http://WWW.baidu.com"..
分类:
Web程序 时间:
2017-02-23 14:36:49
阅读次数:
189
var h = {}; h.get = function (url, data, ok, error) { $.ajax({ url: url, data: data, dataType: 'json', success: ok, error: error }); ... ...
分类:
Web程序 时间:
2017-02-23 15:22:56
阅读次数:
190
在.csproj文件中添加以下内容: <Target Name="BeforeBuild"> <TransformXml Source="Web.config" Transform="Web.$(Configuration).config" Destination="Web.config" /></ ...
分类:
Web程序 时间:
2017-02-23 15:30:03
阅读次数:
423
Xamarin.Forms中为WebView指定数据来源Source ...
分类:
Web程序 时间:
2017-02-23 15:35:47
阅读次数:
165
这里提供三种方法: ...
分类:
Web程序 时间:
2017-02-23 15:37:03
阅读次数:
150
一:水平居中方案: 1、行内元素 设置 text-align:center 2、定宽块状元素 设置 左右 margin 值为 auto 3、不定宽块状元素 a:在元素外加入 table 标签(完整的,包括 table、tbody、tr、td),该元素写在 td 内,然后设置 margin 的值为 a ...
分类:
Web程序 时间:
2017-02-23 15:37:50
阅读次数:
207
tornado 学习之异步调用详解
分类:
Web程序 时间:
2017-02-23 15:39:36
阅读次数:
1133