在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ HTML問答
何蘇葉 回答

1.用分頁

設(shè)置頁碼page,和每頁數(shù)量num,向服務(wù)發(fā)送page
每獲取次page+1,當(dāng)返回的num數(shù)量<設(shè)置的num,則獲取完畢。

2.用搜索范圍

設(shè)置開始st,和結(jié)束et,和每次要獲取的數(shù)量num
每次向服務(wù)器發(fā)送這兩個(gè)值,每獲取次st + num
同樣能用num數(shù)量<設(shè)置的num判斷是否獲取完畢。

離魂曲 回答

Vue 已經(jīng)自動(dòng)將counter綁定到數(shù)據(jù)對象上了。

你的瞳 回答

利用首屏渲染啊,就是服務(wù)端先存儲(chǔ)用提前渲染好的HTML,例如一些關(guān)鍵的圖片和大致的樣式,之后從node服務(wù)獲取到就可以替換啦

北城荒 回答

1.自己寫個(gè)后臺(tái)實(shí)現(xiàn)圖片上傳,返回鏈接
2.用現(xiàn)成的圖床

夢一場 回答

PHP本身就提供了一些庫來操作XML,手冊:
http://www.php.net/manual/zh/...

  • DOMDocument

  • ML Expat Parser

  • SimpleXML

  • XMLReader

  • ...

參考一下文章例子
http://blog.csdn.net/aloneswo...

自己看看用什么方法來解析~


哪里解決不了?
比如這樣吧,遍歷層層解析:

<?php
header("Content-type:text/html; Charset=utf-8");

$content = "
<commpara>
  <itempara>
    <pararow>
      <retcode>0</retcode>
      <retstr>成功</retstr>
    </pararow>
  </itempara>
</commpara>
";

// $xml = simplexml_load_file("test.xml");
$xml = simplexml_load_string($content);

echo '第一層:' . $xml->getName() . "<br />";

foreach($xml->children() as $child){
    echo '第二層:' . $child->getName(). "<br />";

    foreach($child->children() as $subChild){
        echo '第三層:' . $subChild->getName() . "<br />";

        foreach($subChild->children() as $item){
            echo $item->getName() . ": " . $item . "<br />";
        }
    }
}

輸出:

第一層:commpara
第二層:itempara
第三層:pararow
retcode: 0
retstr: 成功

更簡單粗暴的XML轉(zhuǎn)數(shù)組,這樣子:

$content = "
<commpara>
  <itempara>
    <pararow>
      <retcode>0</retcode>
      <retstr>成功</retstr>
    </pararow>
  </itempara>
</commpara>
";

$xml = simplexml_load_string($content);
$json = json_encode($xml);
$array = json_decode($json,TRUE);
print_r($array);

輸出,直接就是個(gè)數(shù)組:

Array
(
    [itempara] => Array
        (
            [pararow] => Array
                (
                    [retcode] => 0
                    [retstr] => 成功
                )

        )

)
笑浮塵 回答

getTime() 篩選后臺(tái)數(shù)據(jù)在選擇時(shí)間區(qū)間的

冷咖啡 回答

刪掉node_module,重新安裝一次

小眼睛 回答

跟egg沒關(guān)系吧,只要正確引用就行了吧

黑與白 回答

找到原因了,原來是因?yàn)榉窒淼臅r(shí)候thumbImage過大,基本上都在700KB以上,使用nginx的http_image_filter_module在分享的時(shí)候處理一下圖片即可,如果使用第三方的圖片存儲(chǔ),如阿里云OSS,有提供相應(yīng)的處理功能如:域名/sample.jpg?x-oss-process=style/stylename,這些都是可以在阿里云控制臺(tái)配置即可

陌上花 回答

事件委托了解一下,可以將事件綁定在它的父元素上,之后利用$event判斷子元素與否。

短嘆 回答

把要排除的文件路徑放到exclude里:

exclude: [
  resolve('node_modules/XXXXX/bootstrap.min.css')
]

如果exclude里已經(jīng)有內(nèi)容了,可以參考一下說明文檔,寫成以下的形式:

exclude: {
  test: [/* 正則內(nèi)容 */],
  exclude: [
    resolve('node_modules/XXXXX/bootstrap.min.css')
  ]
}
卟乖 回答

試下這樣

optimization: {
    splitChunks: {
        cacheGroups: {
            commons: {
                name: 'common',
                priority: 10,
                chunks: 'initial'
            }
        }
    }
}
黑與白 回答

MongoVUE已經(jīng)停止更新很久了,使用軟件之前看一下它本身的版本和它支持的軟件版本就可以發(fā)現(xiàn)了。
替代產(chǎn)品有:

  • MongoDB Compass
  • MongoChef
  • Robomongo
遺莣 回答

vue的組件模板要求是單根,你的counter-temp不是單根,在h1和button外面套一個(gè)div就可以了。

<template id="counter-temp">
 <div>
  <h1>Hello Vuejs!!</h1>
  <button>{{count}}</button>
 </div>
</template>
尐潴豬 回答
  1. 可以使用php mail擴(kuò)展。按手冊添加相關(guān)配置之后調(diào)用

http://php.net/manual/zh/mail...

$to = "someone@example.com";         // 郵件接收者
$subject = "參數(shù)郵件";                // 郵件標(biāo)題
$message = "Hello! 這是郵件的內(nèi)容。";  // 郵件正文
$from = "someonelse@example.com";   // 郵件發(fā)送者
$headers = "From:" . $from;         // 頭部信息設(shè)置
mail($to,$subject,$message,$headers);
echo "郵件已發(fā)送";

2.也可以使用phpmailer發(fā)送
https://github.com/PHPMailer/...

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

//Load Composer's autoloader
require 'vendor/autoload.php';

$mail = new PHPMailer(true);                              // Passing `true` enables exceptions
try {
    //Server settings
    $mail->SMTPDebug = 2;                                 // Enable verbose debug output
    $mail->isSMTP();                                      // Set mailer to use SMTP
    $mail->Host = 'smtp1.example.com;smtp2.example.com';  // Specify main and backup SMTP servers
    $mail->SMTPAuth = true;                               // Enable SMTP authentication
    $mail->Username = 'user@example.com';                 // SMTP username
    $mail->Password = 'secret';                           // SMTP password
    $mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
    $mail->Port = 587;                                    // TCP port to connect to

    //Recipients
    $mail->setFrom('from@example.com', 'Mailer');
    $mail->addAddress('joe@example.net', 'Joe User');     // Add a recipient
    $mail->addAddress('ellen@example.com');               // Name is optional
    $mail->addReplyTo('info@example.com', 'Information');
    $mail->addCC('cc@example.com');
    $mail->addBCC('bcc@example.com');

    //Attachments
    $mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
    $mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name

    //Content
    $mail->isHTML(true);                                  // Set email format to HTML
    $mail->Subject = 'Here is the subject';
    $mail->Body    = 'This is the HTML message body <b>in bold!</b>';
    $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

    $mail->send();
    echo 'Message has been sent';
} catch (Exception $e) {
    echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}