This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var formData = new FormData(); | |
var name = $("input").val(); | |
formData.append("file",$("#upload")[0].files[0]); | |
formData.append("name",name); | |
$.ajax({ | |
url : Url, | |
type : 'POST', | |
data : formData, | |
// 告诉jQuery不要去处理发送的数据 | |
processData : false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
const path = d3.path() | |
path.rect(0, 10, 30, 40); | |
console.log(path); | |
svg.append('g').append("path").attr('d', path.toString()) | |
.style("stroke", 'red'); | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
当你在入口文件设置了全局变量, 然后引用其他文件, 如果没有强依赖关系 | |
那么这个全局变量在子文件当中是读取不了的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2、修改profile文件: | |
#vi /etc/profile | |
在里面加入: | |
export PATH="$PATH:/opt/au1200_rm/build_tools/bin" | |
让环境变量立即生效需要执行如下命令: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_page 404 /index.html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一、备份常用操作基本命令 | |
1、备份命令mysqldump格式 | |
格式:mysqldump -h主机名 -P端口 -u用户名 -p密码 –database 数据库名 > 文件名.sql | |
2、备份MySQL数据库为带删除表的格式 | |
备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手动删除原有数据库。 | |
mysqldump --add-drop-table -uusername -ppassword -database databasename > backupfile.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
从服务器下载整个目录 | |
scp -r username@servername:remote_dir/ /tmp/local_dir | |
上传目录到服务器 | |
scp -r /tmp/local_dir username@servername:remote_dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo killall -HUP mDNSResponder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
—– BEGIN LICENSE —– | |
K-20 | |
Single User License | |
EA7E-940129 | |
3A099EC1C0B5C7C5 33EBF0CF BE82FE3B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |