原创 移動端一些問題
移動端rem參考配置 html{font-size:10px} @media screen and (min-width:321px) and (max-width:375px){html{font-size:
原创 js根據某個日期,獲取該日期的前一個星期六以及後一個星期五
//獲取時間段 var date = new Date(); //標準日期格式yyyy/mm/dd var weekByDate = date.substring(0, 4) + "/"
原创 npm install -g react-native-cli 提示npm ERR! Windows_NT 6.1.7601解決方法
錯誤信息: 解決方法: 1.修改https 配置爲http(前面已設置了npm config set registry https://registry.npm.taobao.org) 2.運行 npm config set re
原创 flutter_swiper自定義類拼多多輪播指示器
flutter_swiper插件的分頁指示器默認只有SwiperPagination.dots(圓點)和SwiperPagination.fraction(數字)兩種顯示效果,現需做成類似於拼多多這樣 處理步驟: 1.找到插件中指示
原创 textarea如何實現高度自適應?
轉自:http://www.xuanfengge.com/textarea-on-how-to-achieve-a-high-degree-of-adaptive.html 今天需要些一個回覆評論的頁面,設計師給的初始界面就
原创 angularjs使用div模擬textarea文本框
html: <div class="simulate-textarea" ng-model="view.text" contenteditable="true" placeholder="請輸入內容"></div>Angular
原创 iframe局部刷新的二種實現方法
一、iframe實現局部刷新方法一 <script type="text/javascript"> $(function(){ $("#a1").click(function(){ var name= $(t
原创 移動設備顯示尺寸大全 CSS3媒體查詢
@media screen and ( min-width: 212px){/*213px顯示屏樣式 LG Optimus One*/} @media screen and ( min-width: 319px){/*320px顯
原创 js比較yyyy-mm-dd hh:mm 格式的時間大小
/** * 比較開始時間以及結束時間大小 */ function compareTime(startTime, endTime) { var startDate = st
原创 icomoon生成字體圖標的方法並應用
1.從阿里巴巴矢量圖標庫(http://www.iconfont.cn/)下載svg格式的小圖標 2.藉助在線生成工具:https://icomoon.io/app/#/select 生成font字體的文件 點贊
原创 iframe與主框架跨域相互訪問方法
原文地址:http://blog.csdn.net/fdipzone/article/details/17619673 iframe 與主框架相互訪問方法 1.同域相互訪問 假設A.html 與 b.html dom
原创 React-native Webview接收h5頁面傳送消息
html頁面: Webview頁面: useWebKit={true}必須加入,否則ios無法接收消息
原创 springBoot自定義程序啓動控制檯banner
1.首先在Spring Boot工程的/src/main/resources目錄下創建一個banner.txt文件 2.通過工具生成文本(http://patorjk.com/software/taag/#p=display&f=Graf
原创 react-native打包報錯:react-native-http-cache:compileReleaseJavaWithJavac FAILED
報錯截圖: 解決方法: 在源碼中 node_modules>>react-native-http-cache>>android>>src>>main>>java>>cn>>reactnative>>httpcache>>HttpCach
原创 React-Native Webview引入外部html頁面,接收頁面點擊事件
html 頁面: 其中解決webview報錯問題代碼: let getTitle: Function = function(url: string) { setTimeout(function(