2016-10-10 35 views
-3


我想安装 ac-phpemacs包。我从melpa成功安装它,但无法确定如何使用。 下面是发生了什么的截图。
包安装 installed
配置为 ac-php-*ac-php Configuration
无选项描述! enter image description here
如何解决?请帮助ac-php软件包不能在emacs中工作

+0

显示您的代码(js和html) –

+0

您的小提琴链接不正确。 –

+0

你需要改进你的帖子,更具体地发布你的问题,并附上你的代码。 –

回答

-1

您在这里签发的是$('。to-translate')。click()每次单击输入时触发,然后每次都会重新创建输入。

我有一个修复

https://jsfiddle.net/pcf331u5/

tpl += '<div id="'+iid+'" class="bg-warning"><p class="to-translate">'+text+'</p></div>'; 

$('.to-translate').click(function(){ 
$(this).parent().html('<input type="text" name="" class="form-control ttxti">'); 
}); 

我加入里面你DIV其中包含了对翻译类的p元素更新您的提琴。当触发点击事件时,父级(div)用输入替换内容

+0

谢谢,现在它的工作:) –

+0

不用担心。你可以请标记这个答案是正确的:) – MattLaza