原创 angularJS之link函數對元素事件綁定或屬性的操作

<!doctype html> <html lang="en" ng-app="myApp"> <head> <meta charset="UTF-8"> <title>Document</title> <scri

原创 Outh2.0知識小結

OAuth是一個關於授權(authorization)的開放網絡標準,在全世界得到廣泛應用,目前的版本是2.0版。 本文對OAuth 2.0的設計思路和運行流程,做一個簡明通俗的解釋,主要參考材料爲RFC 6749。 OAut

原创 nginx,laravel5.1在ubuntu的部署

安裝服務器組件 sudo apt-get update //獲得最近的軟件包的列表 sudo apt-get install nginx //安裝Nginx服務器 sudo apt-get install php5-fpm //安

原创 Xshell連接ubuntu

 Xshell是一個安全終端模擬軟件,可以進行遠程登錄。我使用XShell的主要目的是在Windows環境下登錄Linux終端進行編碼,非常方便。本文簡單介紹下它的使用方法。 1.下載後在安裝時選擇個人/學校免費版即可。 2.安裝

原创 ubuntu中安裝和卸載apache2

ubuntu中安裝和卸載apache2 1.安裝apache2 安裝命令:sudo apt-get install apache2 啓動/停止/重啓apache2: service apache2 start/stop/rest

原创 ng-repeat 在angularJS中用法

<!doctype html> <html lang="en" ng-app="myAPP"> <head> <meta charset="UTF-8"> <title>Document</title> <

原创 在Ubuntu 14.04 LTS系統中設置Apache虛擬主機

在這個教程中,我會使用Ubuntu 14.04 LTS,並搭建1個測試網站命名目錄爲“tianmao .我的虛擬機IP192.168.1.128。你可以根據你的需要更改虛擬域名。前提是有了虛擬機的靜態ip, sudo mkdir

原创 angular之directive模板視圖替換

<!doctype html> <html lang="en" ng-app="myApp"> <head> <meta charset="UTF-8"> <title>Document</title> <scri

原创 Nginx在Ubuntu安裝部署,常用命令

sudo apt-get update 更新源 sudo apt-get install nginx 安裝nginx 在瀏覽器中輸入http://127.0.0.1 常用基本命令 1、sud

原创 模型model獲取動態輸入值

<!doctype html> <html lang="en" ng-app="myApp"> <head> <meta charset="UTF-8"> <title>Document</title> <

原创 angularJS之$watch用法

scope. watch(‘表達式的值’,’回調函數’)函數監視一個表達式,當表達式發生變化,就觸發一個回調函數 <!doctype html> <html lang="en" ng-app="moduleApp"> <head>

原创 ng-repeate 和ng-show的用法

<!doctype html> <html lang="en" ng-app="myAPP"> <head> <meta charset="UTF-8"> <title>Document</title> <

原创 compile對指令模板進行轉換

<!doctype html> <html lang="en" ng-app="myApp"> <head> <meta charset="UTF-8"> <title>Document</title> <

原创 angularJS實例之購物車

<!doctype html> <html lang="en" ng-app="Cartmodel"> <head> <meta charset="UTF-8"> <title>Document</title>