Fork me on GitHub
  1. WR720N硬改刷openwrt

    需要准备的工具:

    1. WR720N v3
    2. W25Q1238FVSSIG 16M闪存
    3. H5DU5162ETR-E3C 64M路由内存
    4. 电烙铁
    5. 热风枪
    6. 土豪金XTW100编程器
    7. 网线一根
    8. 可以插网线的电脑一台

    流程

    1. 网线连接路由后,打开 192.168 …
    read more

    There are comments.

  2. 热敏打印机无法调整font-size

    Web前端需要连接热敏打印机打印小票,但是font-size始终无法调小,最终解决见demo:

    update:2020年12月04日

    https://medium.com/@Idan_Co/the-ultimate-print-html-template-with-header-footer-568f415f6d2a

    <!DOCTYPE HTML>
    <html>
    
    <head>
        <meta name="renderer" content="webkit">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>美问</title>
        <style type="text/css">
        @media screen {
            #printSection {
                display: none …
    read more

    There are comments.

  3. Google Chrome 控制台

    console

    console.log(object [, object, ...])

    console.info(object [, object, ...])

    console.error(object [, object, ...])

    var str = 'hello world';
    console.log('--->>>%s', str);
    

    常用格式代码:

    说明符 输出
    %s 将值格式化为字符串
    %i 或 %d 将值格式化 …
    read more

    There are comments.

links

social