Skip to content

Instantly share code, notes, and snippets.

@zhoufenfens
Created February 10, 2020 14:19
Show Gist options
  • Save zhoufenfens/eed2ff697c5234d3dc2b0dbc983776fa to your computer and use it in GitHub Desktop.
Save zhoufenfens/eed2ff697c5234d3dc2b0dbc983776fa to your computer and use it in GitHub Desktop.
// if (window.location.hostname === 'localhost') {
// // 测试环境
// let el = document.querySelectorAll('[data-sdkdom=phone]')[0];
// el.value = '18515904047';
// var e = document.createEvent('HTMLEvents');
// e.initEvent('input', false, true);
// el.dispatchEvent(e);
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment