你把所有的.html
都重寫為index.php?blabla=blabla
帶參數(shù)的,但是php
代理配置那里匹配的是\.php$
這里是不帶參數(shù)的,你要配置成帶參數(shù)的才行。
$(document).ready(function () {
var $texta = $('#my-textarea');
var lastWidth = localStorage.getItem("my-area-width");
var lastHeight = localStorage.getItem("my-area-height");
if(lastWidth && lastHeight) {
$texta.css("width",lastWidth+"px");
$texta.css("height",lastHeight+"px");
}
$texta.data('x', $texta.outerWidth());
$texta.data('y', $texta.outerHeight());
$texta.mouseup(function () {
var $this = $(this);
var width = $this.outerWidth();
var height = $this.outerHeight();
if (width != $this.data('x') || height != $this.data('y')) {
alert(width + ' - ' + $this.data('x') + '\n' + height + ' - ' + $this.data('y'));
localStorage.setItem("my-area-width",width);
localStorage.setItem("my-area-height",height);
}
$this.data('x', width);
$this.data('y', height);
});
});
許久沒有管這個事情……自問自答了……
翻了一下評論曰實際上是一個fat文件系統(tǒng)權(quán)限的問題……說是說不能叫做bug……但是總之就當個注意點吧……
參考ben at indietorrent dot org 的回答……
也就是復制到fat格式的文件系統(tǒng)上時會產(chǎn)生如此的錯誤……
From the Changelog notes:
"Warnings may be generated if the destination filesystem doesn't permit chown() or chmod() system calls to be made on files — for example, if the destination filesystem is a FAT filesystem."
More explicitly, rename() may still return (bool) true, despite the warnings that result from the underlying calls to chown() or chmod(). This behavior can be misleading absent a deeper understanding of the underlying mechanics. To rename across filesystems, PHP "fakes it" by calling copy(), unlink(), chown(), and chmod() (not necessarily in that order). See PHP bug #50676 for more information.
On UNIX-like operating systems, filesystems may be mounted with an explicit uid and/or gid (for example, with mount options "uid=someuser,gid=somegroup"). Attempting to call rename() with such a destination filesystem will cause an "Operation not permitted" warning, even though the file is indeed renamed and rename() returns (bool) true.
This is not a bug. Either handle the warning as is appropriate to your use-case, or call copy() and then unlink(), which will avoid the doomed calls to chown() and chmod(), thereby eliminating the warning.
swoole連RFC6455都沒完全實現(xiàn),壓縮擴展也沒有……雖然不影響基本的使用,但是超出了swoole支持的范圍就不方便了。
而python的websockets,完整實現(xiàn)RFC6455,有uvloop(Cython + libuv)IO也性能不會差。
不考慮IO的話,只要不寫一些作死的邏輯,php的在cli的處理能力基本不需要擔心不夠用,但是存在IO的情況下,瓶頸大多都是在這些IO操作和等待上,不好給你的數(shù)值。
php的配置一般改動也不會太多,cli下運行主要注意下可以使用的最大內(nèi)存。
增加多個php腳本是可行的,監(jiān)控下CPU和內(nèi)存的使用就可以了
官方文檔有簡要描述,但是看你的這個場景,你不考慮使用 swoole或者workerman這類異步、并行、高性能網(wǎng)絡通信引擎嗎?
var_dump(this->_sql());
查看執(zhí)行的sql
use GuzzleHttpClient;
$client = new Client([
// Base URI is used with relative requests
'base_uri' => 'http://optimadev.ivt.edu.cn/api/',
// You can set any number of default request options.
'timeout' => 5.0,
]);
$res = $client->request('GET', 'qrCode');
echo $res->getStatusCode();
$this->event->fire() 一樣
不存在的,肯定能取到值
關(guān)了 (逃
他在每個文件里都引入了公共文件,在公共文件中將v定義到了當前作用域,為了防止重復,所以在定義之前先檢查了一下當前作用域有沒有多次引入公共文件,沒有的話才繼續(xù)定義v
header頭直接下載啊
看b的值是什么類型,如果b沒有值,那就用這個類型的默認值,但是b字段在是存在的,保證結(jié)構(gòu)體是一致的,而不是變來變?nèi)ァ?/p>
目前使用的方案是這樣
node在后端大公司不會全站用,都會做成接入層,核心邏輯用RPC調(diào)用做的。
如果是一般項目,可以考慮koa
,express
,eggjs
這種web框架。
加上現(xiàn)在docker化的開發(fā),nodejs這點上比PHP方便
params(treeMap) sign(params,key)
去看看是不是開啟了vhosts,/etc/httpd/conf.d/httpd-vhosts.conf
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學院和江蘇省首批服務外包人才培訓基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務機構(gòu),發(fā)展為教育服務業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。