上傳以后,保存文件。然后在頁面里引這個(gè)文件的 url
limit 3
或者添加計(jì)數(shù)器,
+1;當(dāng)?shù)扔?的時(shí)候break;
彈出框定位(fixed),頂部和底部絕對定位,中間的overflow:scroll
https://packagist.org/package...
雖然不知道你為什么要下載那么古老的 2.0.5
的版本,但是 composer 官網(wǎng)上的 yiisoft/yii2-app-advanced
包并沒 2.0.5 版本。
現(xiàn)在 yiisoft/yii2-app-advanced
的最新版本是 2.0.14
,可以使用如下命令進(jìn)行下載:
composer create-project yiisoft/yii2-app-advanced advanced 2.0.14
實(shí)際上,到目前為止,yii2框架核心的版本已經(jīng)是 2.0.15.1,安裝時(shí)composer 會自動(dòng)將其升級為最新版本。
[/tmp] ]$composer create-project yiisoft/yii2-app-advanced advanced 2.0.14
Installing yiisoft/yii2-app-advanced (2.0.14)
- Installing yiisoft/yii2-app-advanced (2.0.14): Loading from cache
Created project in advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 59 installs, 0 updates, 0 removals
- Installing yiisoft/yii2-composer (2.0.6): Loading from cache
- Installing swiftmailer/swiftmailer (v5.4.9): Loading from cache
- Installing bower-asset/jquery (3.2.1): Loading from cache
- Installing bower-asset/yii2-pjax (2.0.7.1): Loading from cache
- Installing bower-asset/punycode (v1.3.2): Loading from cache
- Installing cebe/markdown (1.1.2): Loading from cache
- Installing ezyang/htmlpurifier (v4.10.0): Loading from cache
- Installing bower-asset/inputmask (3.3.11): Loading from cache
- Installing yiisoft/yii2 (2.0.15.1): Loading from cache
- Installing yiisoft/yii2-swiftmailer (2.0.7): Loading from cache
- Installing bower-asset/bootstrap (v3.3.7): Loading from cache
- Installing yiisoft/yii2-bootstrap (2.0.8): Loading from cache
- Installing yiisoft/yii2-debug (2.0.13): Loading from cache
- Installing bower-asset/typeahead.js (v0.11.1): Loading from cache
- Installing phpspec/php-diff (v1.1.0): Loading from cache
- Installing yiisoft/yii2-gii (2.0.6): Loading from cache
- Installing fzaninotto/faker (v1.7.1): Loading from cache
- Installing yiisoft/yii2-faker (2.0.4): Loading from cache
- Installing doctrine/instantiator (1.0.5): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing sebastian/recursion-context (2.0.0): Loading from cache
- Installing sebastian/exporter (2.0.0): Loading from cache
- Installing phpunit/phpunit-mock-objects (3.4.4): Loading from cache
- Installing codeception/stub (1.0.2): Loading from cache
- Installing sebastian/diff (1.4.3): Loading from cache
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
- Installing phpunit/php-file-iterator (1.4.5): Loading from cache
- Installing sebastian/resource-operations (1.0.0): Loading from cache
- Installing sebastian/comparator (1.2.4): Loading from cache
- Installing webmozart/assert (1.3.0): Loading from cache
- Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
- Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (3.3.2): Loading from cache
- Installing phpspec/prophecy (1.7.5): Loading from cache
- Installing myclabs/deep-copy (1.7.0): Loading from cache
- Installing phpunit/php-token-stream (1.4.12): Loading from cache
- Installing sebastian/environment (2.0.0): Loading from cache
- Installing phpunit/php-code-coverage (4.0.8): Loading from cache
- Installing phpunit/php-timer (1.0.9): Loading from cache
- Installing sebastian/global-state (1.1.1): Loading from cache
- Installing sebastian/object-enumerator (2.0.1): Loading from cache
- Installing symfony/yaml (v3.4.8): Downloading (100%)
- Installing phpunit/phpunit (5.7.27): Loading from cache
- Installing codeception/phpunit-wrapper (6.0.9): Downloading (100%)
- Installing behat/gherkin (v4.5.1): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache
- Installing symfony/dom-crawler (v3.4.8): Downloading (100%)
- Installing symfony/css-selector (v3.4.8): Downloading (100%)
- Installing symfony/browser-kit (v3.4.8): Downloading (100%)
- Installing symfony/event-dispatcher (v3.4.8): Downloading (100%)
- Installing psr/log (1.0.2): Loading from cache
- Installing symfony/debug (v3.4.8): Downloading (100%)
- Installing symfony/console (v3.4.8): Downloading (100%)
- Installing symfony/finder (v3.4.8): Downloading (100%)
- Installing psr/http-message (1.0.1): Loading from cache
- Installing guzzlehttp/psr7 (1.4.2): Loading from cache
- Installing codeception/base (2.4.1): Downloading (100%)
- Installing codeception/verify (0.3.3): Loading from cache
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
symfony/browser-kit suggests installing symfony/process ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/console suggests installing symfony/lock ()
symfony/console suggests installing symfony/process ()
codeception/base suggests installing aws/aws-sdk-php (For using AWS Auth in REST module and Queue module)
codeception/base suggests installing codeception/phpbuiltinserver (Start and stop PHP built-in web server for your tests)
codeception/base suggests installing codeception/specify (BDD-style code blocks)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/base suggests installing league/factory-muffin (For DataFactory module)
codeception/base suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/base suggests installing stecman/symfony-console-completion (For BASH autocompletion)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Writing lock file
Generating autoload files
注意一下版本 是瀏覽器版本不是系統(tǒng)版本。
Vue 比較好上手吧,react和ng都要先看懂才好做
Vue的學(xué)習(xí)曲線是比較線性的,前期好上手,然后慢慢學(xué)
非ie瀏覽器無法調(diào)用ocx插件的
先通過后臺判斷是否登陸,再選擇要加載的前臺頁面,大概就是這么個(gè)意思;
比如說,你現(xiàn)在這個(gè)場景,假設(shè)進(jìn)入地址是http://web.com/index.php
,在index.php
文件里去做是否登陸的功能,然后再根據(jù)情況選擇要加載的前臺頁面;
// index.php
<?php
// 簡單判斷一下用戶是否登陸
if(empty($_SESSION['uid']) && !isset($_SESSION['uid'])) {
// 未登錄就加載登陸頁面
// 方案一 加載html登陸頁面
require('login.html');
// 方案二 重定向跳轉(zhuǎn)到登陸頁面
// $url就是要跳轉(zhuǎn)的登陸頁面地址
header('Location:' . $url);
} else {
// 已登錄就加載后臺主頁頁面
// 方案同上登陸
require('home.php');
}
這里有詳細(xì)的圖片處理教程,(壓縮、等比例縮放,水印等等) http://www.itdfy.com/book/?fi...
哎?現(xiàn)在的程序員都不會寫多線程了嗎?
區(qū)別的話,性能上有點(diǎn)區(qū)別,redis的隊(duì)列是可控的,完整的;定時(shí)的計(jì)劃任務(wù)易受干擾,程序的操作邏輯需要信任外部的一個(gè)程序,可控性較低
從來沒有用過laravel-mix,
但是如果我碰到這種問題,在文檔和搜索引擎都沒有辦法幫助我解決的時(shí)候,我會哪出大殺招,
去 node_modules 目錄下,調(diào)試啊,
通過出錯(cuò)信息,可以看到
/var/www/node_modules/laravel-mix/src/File.js
哪就去打開這個(gè)文件,大不了用console.log 一步步調(diào)試啊, 看看到底是為什么啊
從你htop截圖看你的服務(wù)器上啟動(dòng)了3個(gè)mysqld的進(jìn)程?每個(gè)進(jìn)程占用了5.9%的內(nèi)存。
檢查一下3個(gè)mysqld進(jìn)程是否是必要的,不需要的進(jìn)程停掉,如果3個(gè)進(jìn)程都是需要的調(diào)整一下配置,限制每個(gè)mysqld進(jìn)程使用的內(nèi)存總量。
H5內(nèi)置的頁面么? 一般用click 不行用tap , 反正都是HTML結(jié)構(gòu) , 你用zepto都會幫你封裝好了手機(jī)端的觸摸事件的
額,恭喜你,你的擴(kuò)展全部被你搞丟了,你需要自己重新安裝這些擴(kuò)展.在ubuntu下,我的建議是最好是用pecl安裝或者是apt安裝。這兩個(gè)是自動(dòng)解決依賴問題.如果用源碼,就需要配置好參數(shù).從錯(cuò)誤信息來看,你的擴(kuò)展都被你弄丟了.
php 本身不支持多線程,不過有些擴(kuò)展可以幫你做到,比如使用swoole、pthreads。而且php作為一個(gè)快速開發(fā)的語言,使用線程本身就是不合理的。具體問題,具體分析。如果真的是php語言解決不了的問題,那么久需要使用go或者java去處理這些問題。一個(gè)真正大的項(xiàng)目,不是一種語言就能夠徹底完成的。
K-近鄰算法(KNN) 了解一下
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。