Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Tencent/vConsole into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed May 23, 2023
2 parents 81c104e + eff80a2 commit 21fb678
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link href="./lib/demo.css" rel="stylesheet"/>

<script src="../dist/vconsole.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js"></script>
</head>
<body ontouchstart>
<div class="page">
Expand Down Expand Up @@ -94,7 +95,7 @@

function newTabUseJQuery() {
console.info('newTabUseJQuery() Start');
var tab = new window.vConsole.VConsolePlugin('tab4', 'Tab4');
var tab = new window.VConsole.VConsolePlugin('tab4', 'Tab4');
var $html = $('<div><a href="javascript:;">Alert</a></div>');
$html.find('a').click(function() {
alert('OK');
Expand All @@ -108,7 +109,7 @@

function newTabUseDOM() {
console.info('newTabUseDOM() Start');
var tab = new window.vConsole.VConsolePlugin('tab5', 'Tab5');
var tab = new window.VConsole.VConsolePlugin('tab5', 'Tab5');
var $elm = document.createElement('DIV');
$elm.innerHTML = '<p>It works</p>';
tab.on('renderTab', function(cb) {
Expand Down Expand Up @@ -136,4 +137,4 @@
console.info('removePlugin() End');
}

</script>
</script>

0 comments on commit 21fb678

Please sign in to comment.