回复框高度自动增减js同步

This commit is contained in:
txz 2016-07-13 16:53:17 +08:00
parent 3ffb909e15
commit e61aa9e0dc
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ app.directive('inputAuto',function(){
restrict: 'A',
scope: {},
link: function(scope, element){
var copyContainer = element.parent().children().eq(0);
var sendButton = element.parent().next();
var copyContainer = element.parent().children().children().eq(0);
var sendButton = element.next();
element.on('input',function(){
console.log(sendButton);
copyContainer.html(element[0].value);