原创 sudo gem uninstall cocoapods 報錯
$ sudo gem uninstall cocoapods Remove executables: pod, sandbox-pod in addition to the gem? [Yn] Y ERROR: Whil
原创 ionic鍵盤事件
ionic 中鍵盤事件通過鍵盤插件來管理,首先要添加插件cordova plugin add ionic-plugin-keyboard --save 鍵盤顯示監聽 window.addEventListener('nativ
原创 Vue父子組的傳值通過props,$emit
父組件向子組件傳值,傳遞事件 1、將posts的值通過post,傳遞給子組件 ; 2、將doSomeThing事件通過my-event傳遞給子組件 父組件 <childComponent @my-event="doSomeThin
原创 JavaScript 中 call()、apply()、bind() 的用法
參考鏈接:https://www.runoob.com/w3cnote/js-call-apply-bind.html
原创 Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag
新建了一個vue項目,一直不停的包錯 1 Module build failed: Error: No ESLint configuration found. 2、Parsing error: Adjacent JSX eleme
原创 webview 獲取html中所有的圖片資源並給圖片添加點擊事件
-(void)webViewDidFinishLoad:(UIWebView *)webView { static NSString * const jsGetImages = @"function getImages(
原创 ionic/cordova/phoneGap安裝後報錯command not found
最近在學ionic ,通過命令 sudo npm install -g ionic cordova ionic start MyIonicProject -bash: ionic: command not found 爲此很是困惑
原创 xcode加載pch文件
1、創建 2、加載 $(SRCROOT)爲工程目錄 檢測加載的pch文件時,可將終端打開,將要加載的pch文件拖到終端上,比較加載的路徑和終端上的路徑
原创 Ionic 三級目錄乃至多級目錄隱藏tabs
.directive('hideTabs', function($rootScope) { return { restrict: 'A', link: function($scope, elemen
原创 angularJS http.post 請求
$scope.submit=function(url,params){ $http.post(url,params) .success(function(result){ console.l
原创 ios 切換根視圖
UIViewController *listVC=[[UIStoryboard storyboardWithName:MAIN bundle:nil]instantiateViewControllerWithIdentifier:@"li
原创 使用Markdown編輯器寫博客
歡迎使用Markdown編輯器寫博客 本Markdown編輯器使用StackEdit修改而來,用它寫博客,將會帶來全新的體驗哦: Markdown和擴展Markdown簡潔的語法 代碼塊高亮 圖片鏈接和圖片上傳 LaTex數學公式 UM
原创 設置圓形圖片
在ios開發中我們常用imageView.layer.cornerRadius=imageView.bounds.size.width*0.5;imageView.layer.masksToBounds = YES 來設置原型圖片,但是在
原创 將十六進制色值轉成RGB
#import "UIColor+Extension.h" @implementation UIColor (Extension) +(instancetype)lz_colorWithHex:(u_int32_t)hex {
原创 CocoaPods使用簡介
概要 ios開發中會經常使用到很多第三方開源類庫,比如JSONKit,AFNetWorking等等。需要把這些第三方的源代碼複製到項目中,有些開源庫通產要依賴系統的一些framework,我們需要手動將這些依賴庫添加到項目中;對於某些