需使用 <input /> 或 <textarea></textarea> ,以enter鍵為範例直接加入 @keyup.enter="pop" ,而pop是我自已為方法取的名字,你可以再照以上方法玩玩其它的事件修飾符 ...
確定! 回上一頁