ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 解決中 / 官方已回 求教thumb字段上傳按鈕定位的方法 2 0
未別離(不懂技術) VIP會員 OEM版權 2023-10-06 22:33:47 私信
迅睿CMS版本:4.6.1 #上傳圖片

先反饋個情況,我也不知道是不是問題

onblur="check_title();get_keywords('keywords');"
標題字段默認的表單附加屬性 是上面這個
我再加上一句
onblur="check_title();get_keywords('keywords');" onmouseover="gocopytitle();"
保存后 會刪掉后面新加的一個"雙引號 前面原始的不刪
onblur="check_title();get_keywords('keywords');" onmouseover=gocopytitle();"
在其他字段里面也一樣會刪掉后面左邊的雙信號 最前面的不刪
只要是有空格 就會刪個雙引號 沒空格不刪
麻煩觀察一下 看看

另外求教問題,麻煩指導一下。

系統thumb字段 添加了表單附加事件onclick="gocopytitle();"

我目標是想要加到

<input type="file" name="file_data">這個“上傳”按鈕里面
結果是加到了 <input type="hidden" onclick="gocopytitle();" id="dr_thumb" name="data[thumb]" value="">存值的這個里面
當然其他的也都是加到存值的上面了


最終目的是 鼠標滑過或者點擊“上傳”按鈕執行事件函數同時打開上傳圖片的窗口
<input type="file" name="file_data"> 這里缺ID
<script>
document.getElementById("gocopytitle").onmouseover = function () {
document.getElementById("dr_title").select();
document.execCommand("copy");
};
</script>
getElementByName也搞不到

有大佬說用JQ定位到 file_data 
哪個好心人給幫忙寫一下啊


解決方案

  • image

    只能用于text字段,文件上傳字段不合適

  • $("input[name=file_data]").click(function() {
    	var tt = $("#dr_title").val();
    	var png = ".png";
    	var ttpng = tt + png;
    	var tempInput = $("<input>");
    	$("body").append(tempInput);
    	tempInput.val(ttpng).select();
    	document.execCommand("copy");
    	tempInput.remove();
    });

    通過上面的代碼選擇到name="file_data"的文本框(單文件File的上傳按鈕