<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                * Table of Content # 1\. HTML輸出格式化處理 ## 1.1. 圖片 1.JS 中使用image\_thumb(image\_url, w, h) ~~~js function image_thumb(image_url, w, h) { if ('undefined' == typeof w) { w = 60; } if ('undefined' == typeof h) { h = 60; } } ~~~ 2.PHP 中使用 img ~~~PHP /** * Generates an image tag. * @param array|string $src the image URL. This parameter will be processed by [[Url::url()]]. * @param array $options the tag options in terms of name-value pairs. These will be rendered as * the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]]. * If a value is null, the corresponding attribute will not be rendered. * See [[renderTagAttributes()]] for details on how attributes are being rendered. * @return string the generated image tag */ public static function img($src, $options = array()) { $options['src'] = $src; if (!isset($options['alt'])) { $options['alt'] = ''; } return static::tag('img', '', $options); } ~~~ ## 1.2. 數字的處理 ### 1.2.1. 時間 ### 1.2.2. 貨幣 1.format\_money($number , $decimals = 2 , $dec\_point = '.' , $thousands\_sep = ',' ) ~~~php /** * Generates an image tag. * @param number|string $number 貨幣的數值 * @param int $decimals 小數點后長度,默認為2 * @param string $thousands_sep 千位分隔符,默認為, * @return string */ function format_money($number , $decimals = 2 , $dec_point = '.' , $thousands_sep = ',' ) { if (is_numeric($number)) { return sprintf('<span class="unit">%s</span><span class="price">%s</span>', Base_ConfigModel::getConfig('monetary_unit'), number_format($number, $decimals, $dec_point, $thousands_sep)); } else { return sprintf('<span class="unit">%s</span><span class="price">%s</span>', Base_ConfigModel::getConfig('monetary_unit'), $number); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看