如何在 Angular app 和 HTML 中以程式設計方式建立 DragEvent?
要建立 DragEvent,請使用 protractor API。官方文件 陳述
The browser.get method loads a page. Protractor expects Angular to be present on a page, so it will throw an error if the page it is attempting to load does not contain the Angular library. (If you need to interact with a non-Angular page, you may access the wrapped web driver instance directly with browser.driver).
也可以使用以下模式
browser
.actions()
.dragAndDrop(myEle, {x:100,y:100})
.perform();
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP