關于 sidebar 和 header 最好通過 vuex 管理狀態(tài)
你可以其使用 goto()
函數做控制,但它不能從循環(huán)中跳出。
已經解決,直接在save 處寫服務器絕對路徑既可
public function get_test()
{
$file = '456.xls';
$file_path = ROOT_PATH.'uploads/Tmp/'.$file;
$PHPExcel = new \PHPExcel();
$PHPSheet = $PHPExcel->getActiveSheet();
$PHPSheet->setTitle("demo"); //給當前活動sheet設置名稱
$PHPSheet->setCellValue("A1","姓名")->setCellValue("B1","分數");//表格數據
$PHPSheet->setCellValue("A2","張三")->setCellValue("B2","2121");//表格數據
$objWriter = \PHPExcel_IOFactory::createWriter($PHPExcel, 'Excel2007');
$objWriter->save($file_path); //文件直接下載我指定的服務器目錄中
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="index.php" method="post">
輸入年份: <input type="text" name="yer"/>
輸入月份: <input type="text" name="mth"/>
<input type="submit" value="提交" name=""/>
</form>
<?php
@$yer=$_POST['yer'] or die();
@$mth=$_POST['mth'] or die();
$yer=2017;
$mth=4;
if($mth ==1 || $mth == 3|| $mth == 5|| $mth == 7|| $mth == 8|| $mth == 10|| $mth == 12){
echo '這個月有 <input type="text" value="31天">';
}
else if($mth == 4|| $mth == 6|| $mth == 9|| $mth == 11){
echo '這個月有 <input type="text" value="30天">';
}
else if($mth == 2){
if(isrunnian($yer)){
echo "今年是閏年,這個二月是29天";
}
else{
echo "這個月是29天";
}
}
function isrunnian($yer){
if($yer%4 ==0 && !$yer%100 ==0 || $yer%400 ==0){
return true;
}
else{
return false;
}
}
?>
</body>
</html>
http://www.workerman.net/web-sender
可以通過workerman的phpsocket.io推送
http://wenda.workerman.net/?/question/508
可以在Worker中開一個text端口推送
http://workerman.net/gatewaydoc/advanced/push.html
利用workerman的gatewayWorker推送,使用GatewayClient
什么時候觸發(fā)以及怎么觸發(fā)需要自己控制
float元素是不能把父級元素撐高的
可以在:\App\Exceptions\Handler::render
方法捕獲所有異常錯誤。
我這開發(fā) API 自定義錯誤消息,你在這里可以捕獲之后自定義郵件內容,然后發(fā)送郵件;
!?。?不推薦在這里發(fā)送,而是加入隊列,通過隊列發(fā)送郵件
好像沒啥問題
$temp = unpack('C*', '這是為什么');
print_r($temp);
$temp1 = pack('C*', ...$temp);
print_r($temp1);
你的token在哪里??
$.ajax({
????type:"POST",
????url:url,
????data:formData,
????//在請求前設置請求頭 在請求頭里面設置設置請求頭的信息
????beforeSend: function(request) {
????????????request.setRequestHeader("Authorization", token1);
????},
????success:function(res){
???? console.log(res);
????}
});
要做這個功能的話,考慮swoole
1.是否有跨域?
2.cookie有同域 同源 策略.
array_filter
如果是跳轉指定php文件,參考nginx redirect 配置。如果是想在請求的php文件執(zhí)行前或執(zhí)行后執(zhí)行特定的函數,則在入口或結束前匹配url
& 符號需要加amp;好像
單頁面可以出來,你把路由的設置貼出來,看一下
WeixinJSBridge 去看微信公眾平臺的文檔
你看看這個是不是你要的 http://qydev.weixin.qq.com/wi...
統一下單有很多demo.
你要的是不是 nodejs的實現?
https://github.com/tvrcgo/wei...
可能時安裝node的時候中途有什么操作中斷了,我出現過類似的問題,我把node卸了重裝就好了,要不你可以試試。
大致流程如下:
視圖層
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/test" method="post">
{:token()}
username:
<input type="text" name="username">
email:
<input type="email" name="email">
<input type="submit" value="submit">
</form>
</body>
</html>
驗證器User
<?php
namespace app\index\validate;
use think\Validate;
class User extends Validate
{
protected $rule = [
'username' => 'require|max:25|token',
'email' => 'email',
];
}
Controller層
<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
class Index extends Controller
{
public function index()
{
return view('index');
}
public function test(Request $request)
{
$result = $this->validate(
[
'__token__' => $request->param('__token__'),
'username' => $request->param('username'),
'email' => $request->param('email'),
],
'app\index\validate\User'
);
if ($result !== true) {
dump($result);
} else {
dump($request->param());
}
}
}
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數據專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯網學院和江蘇省首批服務外包人才培訓基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術與教育服務機構,發(fā)展為教育服務業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓、網
達內教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構,是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯想擔任系統開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經理從事移動互聯網管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經理職務負責iOS教學及管理工作。
浪潮集團項目經理。精通Java與.NET 技術, 熟練的跨平臺面向對象開發(fā)經驗,技術功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網頁制作和網頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經驗。曾經歷任德國Software AG 技術顧問,美國Dachieve 系統架構師,美國AngelEngineers Inc. 系統架構師。