<commit_before><!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>被挂载到dom钩子</title>
	<style>
		.sese {
			background-color: rgba(0, 188, 188, 0.6);
			padding: 4px 8px;
			display: inline-block;
			list-style: none;
			color: #fff;
			border-radius: 4px;
			margin-right: 5px;
		}

		.btn {
			background-color: rgba(188, 0, 188, 0.6);
			cursor: pointer;
			margin-left: 40px;
		}
	</style>
</head>
<body>

<div id="app1">
	<ol>
		<li class="sese" v-bind:title="say(todo.text)" v-for="todo in todos">{{todo.text}}</li>
	</ol>
</div>

<!-- 被挂载到dom钩子。如果想整个视图都渲染完毕，请继续使用 vm.$nextTick()-->
<script src="https://unpkg.com/vue"></script>

<script type="text/javascript">
    // https://cn.vuejs.org/v2/api/#mounted
	//	https://jsfiddle.net/vini123/ku889x0f/

    var vm1 = new Vue({
        el: "#app1",
        data: {
            todos: []
        },
        mounted: function() {
            this.$nextTick(function() {
                this.todos = [{
                    text: "海上生明月"
                }, {
                    text: "天涯共此时"
                }, {
                    text: "情人怨遥夜"
                }, {
                    text: "竟夕起相思"
                }]
            });
        },
        methods: {
            say: function(value) {
                console.log(value);
                return " - " + value;
            }
        }
    });

</script>
</body>
</html><commit_msg>挂载完毕的钩子<commit_after><!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>被挂载到dom钩子</title>
	<style>
		.sese {
			background-color: rgba(0, 188, 188, 0.6);
			padding: 4px 8px;
			display: inline-block;
			list-style: none;
			color: #fff;
			border-radius: 4px;
			margin-right: 5px;
		}

		.btn {
			background-color: rgba(188, 0, 188, 0.6);
			cursor: pointer;
			margin-left: 40px;
		}
	</style>
</head>
<body>

<div id="app1">
	<ol>
		<li class="sese" v-bind:title="say(todo.text)" v-for="todo in todos">{{todo.text}}</li>
	</ol>
</div>

<!-- 被挂载到dom钩子。如果想整个视图都渲染完毕，请继续使用 vm.$nextTick()-->
<script src="https://unpkg.com/vue"></script>

<script type="text/javascript">
    // https://cn.vuejs.org/v2/api/#mounted

    var vm1 = new Vue({
        el: "#app1",
        data: {
            todos: []
        },
        mounted: function() {
            this.$nextTick(function() {
                this.todos = [{
                    text: "海上生明月"
                }, {
                    text: "天涯共此时"
                }, {
                    text: "情人怨遥夜"
                }, {
                    text: "竟夕起相思"
                }]
            });
        },
        methods: {
            say: function(value) {
                return " - " + value;
            }
        }
    });

</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.18372790930310104, 'fraction_numerical': 0.022340780260086696, 'mean_word_length': 1.7173913043478262, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2505568', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1162, 'n_words': 189}