angularJs 怎麼根據(jù)兩種不同的條件使 placeholder=" " 等於不同的值。
<input type="text" name="keyWords" id="keyWords" placeholder="{{myPlaceholder}}" class="search-style">
Controller裡面
$scope.myPlaceholder = '關(guān)鍵詞';