2016-10-10 29 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

相關問題